 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 00:00:31.985379
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/00/00/image_06042025_00_00_43_9751.jpg', 2), ('/home/nano/Desktop/images/06042025/00/00/image_06042025_00_00_34_9774.jpg', 2), ('/home/nano/Desktop/images/06042025/00/00/image_06042025_00_00_24_9763.jpg', 2), ('/home/nano/Desktop/images/06042025/00/00/image_06042025_00_00_14_10800.jpg', 2), ('/home/nano/Desktop/images/05042025/23/59/image_06042025_00_00_03_9773.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa8254c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa8254c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa8254c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 00:03:02.725130
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/00/02/image_06042025_00_02_43_9783.jpg', 2), ('/home/nano/Desktop/images/06042025/00/02/image_06042025_00_02_34_9784.jpg', 2), ('/home/nano/Desktop/images/06042025/00/02/image_06042025_00_02_24_9799.jpg', 2), ('/home/nano/Desktop/images/06042025/00/02/image_06042025_00_02_14_10888.jpg', 2), ('/home/nano/Desktop/images/06042025/00/01/image_06042025_00_02_03_9863.jpg', 2), ('/home/nano/Desktop/images/06042025/00/01/image_06042025_00_01_53_9861.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f90b95ba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f90b95ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f90b95ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 00:05:32.522360
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/00/05/image_06042025_00_05_44_9773.jpg', 2), ('/home/nano/Desktop/images/06042025/00/05/image_06042025_00_05_34_10784.jpg', 2), ('/home/nano/Desktop/images/06042025/00/05/image_06042025_00_05_23_9763.jpg', 2), ('/home/nano/Desktop/images/06042025/00/05/image_06042025_00_05_13_9787.jpg', 2), ('/home/nano/Desktop/images/06042025/00/04/image_06042025_00_05_04_9824.jpg', 2), ('/home/nano/Desktop/images/06042025/00/04/image_06042025_00_04_54_9687.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa7117c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa7117c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa7117c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 00:08:02.082410
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/00/07/image_06042025_00_07_44_10785.jpg', 2), ('/home/nano/Desktop/images/06042025/00/07/image_06042025_00_07_33_9775.jpg', 2), ('/home/nano/Desktop/images/06042025/00/07/image_06042025_00_07_24_9796.jpg', 2), ('/home/nano/Desktop/images/06042025/00/07/image_06042025_00_07_14_9824.jpg', 2), ('/home/nano/Desktop/images/06042025/00/06/image_06042025_00_07_04_9800.jpg', 2), ('/home/nano/Desktop/images/06042025/00/06/image_06042025_00_06_54_10775.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9f27ec18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9f27ec18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9f27ec18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 00:10:32.010973
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/00/10/image_06042025_00_10_43_9785.jpg', 2), ('/home/nano/Desktop/images/06042025/00/10/image_06042025_00_10_34_9786.jpg', 2), ('/home/nano/Desktop/images/06042025/00/10/image_06042025_00_10_24_9804.jpg', 2), ('/home/nano/Desktop/images/06042025/00/10/image_06042025_00_10_14_10818.jpg', 2), ('/home/nano/Desktop/images/06042025/00/09/image_06042025_00_10_03_9787.jpg', 2), ('/home/nano/Desktop/images/06042025/00/09/image_06042025_00_09_53_9770.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa30a0c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa30a0c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa30a0c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 00:13:02.780927
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/00/12/image_06042025_00_12_44_9763.jpg', 2), ('/home/nano/Desktop/images/06042025/00/12/image_06042025_00_12_34_10772.jpg', 2), ('/home/nano/Desktop/images/06042025/00/12/image_06042025_00_12_23_9762.jpg', 2), ('/home/nano/Desktop/images/06042025/00/12/image_06042025_00_12_13_9783.jpg', 2), ('/home/nano/Desktop/images/06042025/00/11/image_06042025_00_12_04_9776.jpg', 2), ('/home/nano/Desktop/images/06042025/00/11/image_06042025_00_11_54_9762.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f97762ba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f97762ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f97762ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 00:15:32.522526
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/00/15/image_06042025_00_15_44_10674.jpg', 2), ('/home/nano/Desktop/images/06042025/00/15/image_06042025_00_15_33_9668.jpg', 2), ('/home/nano/Desktop/images/06042025/00/15/image_06042025_00_15_24_9664.jpg', 2), ('/home/nano/Desktop/images/06042025/00/15/image_06042025_00_15_14_10688.jpg', 2), ('/home/nano/Desktop/images/06042025/00/14/image_06042025_00_14_54_9662.jpg', 2), ('/home/nano/Desktop/images/06042025/00/14/image_06042025_00_14_44_10670.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa5f2fc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa5f2fc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa5f2fc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 00:18:02.032507
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/00/17/image_06042025_00_17_44_9842.jpg', 2), ('/home/nano/Desktop/images/06042025/00/17/image_06042025_00_17_34_10841.jpg', 2), ('/home/nano/Desktop/images/06042025/00/17/image_06042025_00_17_23_9836.jpg', 2), ('/home/nano/Desktop/images/06042025/00/17/image_06042025_00_17_13_9688.jpg', 2), ('/home/nano/Desktop/images/06042025/00/16/image_06042025_00_17_04_9672.jpg', 2), ('/home/nano/Desktop/images/06042025/00/16/image_06042025_00_16_54_10705.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa74cdc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa74cdc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa74cdc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 00:20:31.992352
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/00/20/image_06042025_00_20_43_9816.jpg', 2), ('/home/nano/Desktop/images/06042025/00/20/image_06042025_00_20_33_9764.jpg', 2), ('/home/nano/Desktop/images/06042025/00/20/image_06042025_00_20_24_9769.jpg', 2), ('/home/nano/Desktop/images/06042025/00/19/image_06042025_00_20_04_10803.jpg', 2), ('/home/nano/Desktop/images/06042025/00/19/image_06042025_00_19_53_9786.jpg', 2), ('/home/nano/Desktop/images/06042025/00/19/image_06042025_00_19_44_9785.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9a40bc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9a40bc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9a40bc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 00:23:02.553472
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/00/22/image_06042025_00_22_43_9879.jpg', 2), ('/home/nano/Desktop/images/06042025/00/22/image_06042025_00_22_33_9857.jpg', 2), ('/home/nano/Desktop/images/06042025/00/22/image_06042025_00_22_24_9785.jpg', 2), ('/home/nano/Desktop/images/06042025/00/22/image_06042025_00_22_14_9882.jpg', 2), ('/home/nano/Desktop/images/06042025/00/21/image_06042025_00_22_04_9858.jpg', 2), ('/home/nano/Desktop/images/06042025/00/21/image_06042025_00_21_54_9853.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7faba58c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7faba58c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7faba58c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 00:25:32.461097
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/00/25/image_06042025_00_25_44_9812.jpg', 2), ('/home/nano/Desktop/images/06042025/00/25/image_06042025_00_25_34_10822.jpg', 2), ('/home/nano/Desktop/images/06042025/00/25/image_06042025_00_25_23_9817.jpg', 2), ('/home/nano/Desktop/images/06042025/00/25/image_06042025_00_25_13_9805.jpg', 2), ('/home/nano/Desktop/images/06042025/00/24/image_06042025_00_25_04_9786.jpg', 2), ('/home/nano/Desktop/images/06042025/00/24/image_06042025_00_24_54_9780.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8474bc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8474bc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8474bc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 00:28:02.116710
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/00/27/image_06042025_00_27_43_9797.jpg', 2), ('/home/nano/Desktop/images/06042025/00/27/image_06042025_00_27_34_9773.jpg', 2), ('/home/nano/Desktop/images/06042025/00/27/image_06042025_00_27_24_9796.jpg', 2), ('/home/nano/Desktop/images/06042025/00/26/image_06042025_00_27_03_9786.jpg', 2), ('/home/nano/Desktop/images/06042025/00/26/image_06042025_00_26_53_9776.jpg', 2), ('/home/nano/Desktop/images/06042025/00/26/image_06042025_00_26_44_9775.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f79fbec18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f79fbec18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f79fbec18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 00:30:31.834955
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/00/30/image_06042025_00_30_44_9776.jpg', 2), ('/home/nano/Desktop/images/06042025/00/30/image_06042025_00_30_34_9772.jpg', 2), ('/home/nano/Desktop/images/06042025/00/30/image_06042025_00_30_13_9782.jpg', 2), ('/home/nano/Desktop/images/06042025/00/29/image_06042025_00_30_04_9808.jpg', 2), ('/home/nano/Desktop/images/06042025/00/29/image_06042025_00_29_54_9795.jpg', 2), ('/home/nano/Desktop/images/06042025/00/29/image_06042025_00_29_44_9786.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fac8c5c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fac8c5c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fac8c5c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 00:33:02.731791
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/00/32/image_06042025_00_32_44_10802.jpg', 2), ('/home/nano/Desktop/images/06042025/00/32/image_06042025_00_32_33_9791.jpg', 2), ('/home/nano/Desktop/images/06042025/00/32/image_06042025_00_32_24_9793.jpg', 2), ('/home/nano/Desktop/images/06042025/00/32/image_06042025_00_32_14_9836.jpg', 2), ('/home/nano/Desktop/images/06042025/00/31/image_06042025_00_32_04_9803.jpg', 2), ('/home/nano/Desktop/images/06042025/00/31/image_06042025_00_31_54_10801.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8f4d8c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8f4d8c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8f4d8c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 00:35:32.389127
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/00/35/image_06042025_00_35_43_9778.jpg', 2), ('/home/nano/Desktop/images/06042025/00/35/image_06042025_00_35_34_9798.jpg', 2), ('/home/nano/Desktop/images/06042025/00/35/image_06042025_00_35_24_9781.jpg', 2), ('/home/nano/Desktop/images/06042025/00/35/image_06042025_00_35_14_10811.jpg', 2), ('/home/nano/Desktop/images/06042025/00/34/image_06042025_00_35_03_9783.jpg', 2), ('/home/nano/Desktop/images/06042025/00/34/image_06042025_00_34_53_9778.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7faff89c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7faff89c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7faff89c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 00:38:02.930679
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/00/37/image_06042025_00_37_34_10784.jpg', 2), ('/home/nano/Desktop/images/06042025/00/37/image_06042025_00_37_13_9797.jpg', 2), ('/home/nano/Desktop/images/06042025/00/36/image_06042025_00_37_04_9780.jpg', 2), ('/home/nano/Desktop/images/06042025/00/36/image_06042025_00_36_54_9756.jpg', 2), ('/home/nano/Desktop/images/06042025/00/36/image_06042025_00_36_44_10800.jpg', 2), ('/home/nano/Desktop/images/06042025/00/36/image_06042025_00_36_14_9829.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f82cfbc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f82cfbc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f82cfbc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 00:40:31.918276
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/00/40/image_06042025_00_40_44_10786.jpg', 2), ('/home/nano/Desktop/images/06042025/00/40/image_06042025_00_40_23_9780.jpg', 2), ('/home/nano/Desktop/images/06042025/00/40/image_06042025_00_40_14_9812.jpg', 2), ('/home/nano/Desktop/images/06042025/00/39/image_06042025_00_40_04_9799.jpg', 2), ('/home/nano/Desktop/images/06042025/00/39/image_06042025_00_39_43_9783.jpg', 2), ('/home/nano/Desktop/images/06042025/00/39/image_06042025_00_39_33_9781.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fb5a11ba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb5a11ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb5a11ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 00:43:02.813514
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/00/42/image_06042025_00_42_44_9821.jpg', 2), ('/home/nano/Desktop/images/06042025/00/42/image_06042025_00_42_34_9803.jpg', 2), ('/home/nano/Desktop/images/06042025/00/42/image_06042025_00_42_24_10817.jpg', 2), ('/home/nano/Desktop/images/06042025/00/42/image_06042025_00_42_13_9828.jpg', 2), ('/home/nano/Desktop/images/06042025/00/41/image_06042025_00_42_03_9814.jpg', 2), ('/home/nano/Desktop/images/06042025/00/41/image_06042025_00_41_54_9805.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f97d0fc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f97d0fc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f97d0fc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 00:45:32.494039
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/00/45/image_06042025_00_45_43_9694.jpg', 2), ('/home/nano/Desktop/images/06042025/00/45/image_06042025_00_45_34_9703.jpg', 2), ('/home/nano/Desktop/images/06042025/00/45/image_06042025_00_45_24_10682.jpg', 2), ('/home/nano/Desktop/images/06042025/00/45/image_06042025_00_45_13_9694.jpg', 2), ('/home/nano/Desktop/images/06042025/00/44/image_06042025_00_45_04_9676.jpg', 2), ('/home/nano/Desktop/images/06042025/00/44/image_06042025_00_44_43_9675.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7faabb9c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7faabb9c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7faabb9c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 00:48:02.933506
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/00/47/image_06042025_00_47_44_9778.jpg', 2), ('/home/nano/Desktop/images/06042025/00/47/image_06042025_00_47_34_10682.jpg', 2), ('/home/nano/Desktop/images/06042025/00/47/image_06042025_00_47_23_9672.jpg', 2), ('/home/nano/Desktop/images/06042025/00/47/image_06042025_00_47_14_9689.jpg', 2), ('/home/nano/Desktop/images/06042025/00/46/image_06042025_00_47_04_10688.jpg', 2), ('/home/nano/Desktop/images/06042025/00/46/image_06042025_00_46_53_9673.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f7d067c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7d067c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7d067c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 00:50:31.768859
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/00/50/image_06042025_00_50_44_9665.jpg', 2), ('/home/nano/Desktop/images/06042025/00/50/image_06042025_00_50_23_9665.jpg', 2), ('/home/nano/Desktop/images/06042025/00/50/image_06042025_00_50_14_9705.jpg', 2), ('/home/nano/Desktop/images/06042025/00/49/image_06042025_00_49_53_9667.jpg', 2), ('/home/nano/Desktop/images/06042025/00/49/image_06042025_00_49_44_9743.jpg', 2), ('/home/nano/Desktop/images/06042025/00/49/image_06042025_00_49_34_9744.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7facba6c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7facba6c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7facba6c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 00:53:02.646996
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/00/52/image_06042025_00_52_43_9776.jpg', 2), ('/home/nano/Desktop/images/06042025/00/52/image_06042025_00_52_34_9691.jpg', 2), ('/home/nano/Desktop/images/06042025/00/52/image_06042025_00_52_24_9755.jpg', 2), ('/home/nano/Desktop/images/06042025/00/52/image_06042025_00_52_14_10792.jpg', 2), ('/home/nano/Desktop/images/06042025/00/51/image_06042025_00_51_53_9761.jpg', 2), ('/home/nano/Desktop/images/06042025/00/51/image_06042025_00_51_44_9759.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8c7fbc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8c7fbc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8c7fbc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 00:55:32.367973
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/00/55/image_06042025_00_55_43_9815.jpg', 2), ('/home/nano/Desktop/images/06042025/00/55/image_06042025_00_55_33_9822.jpg', 2), ('/home/nano/Desktop/images/06042025/00/55/image_06042025_00_55_24_9828.jpg', 2), ('/home/nano/Desktop/images/06042025/00/55/image_06042025_00_55_14_9841.jpg', 2), ('/home/nano/Desktop/images/06042025/00/54/image_06042025_00_55_04_9834.jpg', 2), ('/home/nano/Desktop/images/06042025/00/54/image_06042025_00_54_54_10830.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa3547c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa3547c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa3547c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 00:58:02.967861
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/00/57/image_06042025_00_57_44_9875.jpg', 2), ('/home/nano/Desktop/images/06042025/00/57/image_06042025_00_57_34_9768.jpg', 2), ('/home/nano/Desktop/images/06042025/00/57/image_06042025_00_57_13_9788.jpg', 2), ('/home/nano/Desktop/images/06042025/00/56/image_06042025_00_56_33_9756.jpg', 2), ('/home/nano/Desktop/images/06042025/00/56/image_06042025_00_56_23_9812.jpg', 2), ('/home/nano/Desktop/images/06042025/00/56/image_06042025_00_56_14_9789.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8c597ba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8c597ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8c597ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 01:00:32.376941
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/01/00/image_06042025_01_00_44_10783.jpg', 2), ('/home/nano/Desktop/images/06042025/01/00/image_06042025_01_00_33_9773.jpg', 2), ('/home/nano/Desktop/images/06042025/01/00/image_06042025_01_00_24_9771.jpg', 2), ('/home/nano/Desktop/images/06042025/01/00/image_06042025_01_00_14_9814.jpg', 2), ('/home/nano/Desktop/images/06042025/00/59/image_06042025_01_00_04_10786.jpg', 2), ('/home/nano/Desktop/images/06042025/00/59/image_06042025_00_59_53_9773.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f80ce4c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f80ce4c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f80ce4c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 01:03:03.067189
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/01/02/image_06042025_01_02_43_9825.jpg', 2), ('/home/nano/Desktop/images/06042025/01/02/image_06042025_01_02_34_9767.jpg', 2), ('/home/nano/Desktop/images/06042025/01/02/image_06042025_01_02_24_9757.jpg', 2), ('/home/nano/Desktop/images/06042025/01/01/image_06042025_01_02_03_9770.jpg', 2), ('/home/nano/Desktop/images/06042025/01/01/image_06042025_01_01_54_9770.jpg', 2), ('/home/nano/Desktop/images/06042025/01/01/image_06042025_01_01_44_9753.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8a005ba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8a005ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8a005ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 01:05:31.959514
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/01/05/image_06042025_01_05_43_9802.jpg', 2), ('/home/nano/Desktop/images/06042025/01/05/image_06042025_01_05_33_9829.jpg', 2), ('/home/nano/Desktop/images/06042025/01/05/image_06042025_01_05_24_9827.jpg', 2), ('/home/nano/Desktop/images/06042025/01/05/image_06042025_01_05_14_9865.jpg', 2), ('/home/nano/Desktop/images/06042025/01/04/image_06042025_01_05_04_9840.jpg', 2), ('/home/nano/Desktop/images/06042025/01/04/image_06042025_01_04_54_10829.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f90f55c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f90f55c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f90f55c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 01:08:02.526517
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/01/07/image_06042025_01_07_44_9807.jpg', 2), ('/home/nano/Desktop/images/06042025/01/07/image_06042025_01_07_34_10815.jpg', 2), ('/home/nano/Desktop/images/06042025/01/07/image_06042025_01_07_23_9800.jpg', 2), ('/home/nano/Desktop/images/06042025/01/07/image_06042025_01_07_14_9830.jpg', 2), ('/home/nano/Desktop/images/06042025/01/06/image_06042025_01_07_04_9801.jpg', 2), ('/home/nano/Desktop/images/06042025/01/06/image_06042025_01_06_54_9803.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fae4a2c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fae4a2c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fae4a2c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 01:10:32.441520
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/01/10/image_06042025_01_10_44_9809.jpg', 2), ('/home/nano/Desktop/images/06042025/01/10/image_06042025_01_10_34_10818.jpg', 2), ('/home/nano/Desktop/images/06042025/01/10/image_06042025_01_10_23_9808.jpg', 2), ('/home/nano/Desktop/images/06042025/01/10/image_06042025_01_10_14_9832.jpg', 2), ('/home/nano/Desktop/images/06042025/01/09/image_06042025_01_10_04_9795.jpg', 2), ('/home/nano/Desktop/images/06042025/01/09/image_06042025_01_09_54_9807.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fb5ee8ba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb5ee8ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb5ee8ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 01:13:03.210744
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/01/12/image_06042025_01_12_44_9832.jpg', 2), ('/home/nano/Desktop/images/06042025/01/12/image_06042025_01_12_34_9782.jpg', 2), ('/home/nano/Desktop/images/06042025/01/12/image_06042025_01_12_24_9802.jpg', 2), ('/home/nano/Desktop/images/06042025/01/12/image_06042025_01_12_14_10829.jpg', 2), ('/home/nano/Desktop/images/06042025/01/11/image_06042025_01_12_03_9774.jpg', 2), ('/home/nano/Desktop/images/06042025/01/11/image_06042025_01_11_54_9814.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8e551c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8e551c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8e551c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 01:15:31.975966
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/01/15/image_06042025_01_15_43_9819.jpg', 2), ('/home/nano/Desktop/images/06042025/01/15/image_06042025_01_15_33_9808.jpg', 2), ('/home/nano/Desktop/images/06042025/01/15/image_06042025_01_15_24_9823.jpg', 2), ('/home/nano/Desktop/images/06042025/01/15/image_06042025_01_15_14_9829.jpg', 2), ('/home/nano/Desktop/images/06042025/01/14/image_06042025_01_15_04_9815.jpg', 2), ('/home/nano/Desktop/images/06042025/01/14/image_06042025_01_14_54_10773.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa59e4ba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa59e4ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa59e4ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 01:18:02.592748
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/01/17/image_06042025_01_17_43_9825.jpg', 2), ('/home/nano/Desktop/images/06042025/01/17/image_06042025_01_17_33_9864.jpg', 2), ('/home/nano/Desktop/images/06042025/01/17/image_06042025_01_17_24_9841.jpg', 2), ('/home/nano/Desktop/images/06042025/01/17/image_06042025_01_17_14_9865.jpg', 2), ('/home/nano/Desktop/images/06042025/01/16/image_06042025_01_17_04_9843.jpg', 2), ('/home/nano/Desktop/images/06042025/01/16/image_06042025_01_16_54_10848.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa0185ba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa0185ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa0185ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 01:20:32.507097
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/01/20/image_06042025_01_20_44_9779.jpg', 2), ('/home/nano/Desktop/images/06042025/01/20/image_06042025_01_20_34_9783.jpg', 2), ('/home/nano/Desktop/images/06042025/01/20/image_06042025_01_20_24_10664.jpg', 2), ('/home/nano/Desktop/images/06042025/01/20/image_06042025_01_20_13_9812.jpg', 2), ('/home/nano/Desktop/images/06042025/01/19/image_06042025_01_20_04_9826.jpg', 2), ('/home/nano/Desktop/images/06042025/01/19/image_06042025_01_19_54_9828.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f91e0ec18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f91e0ec18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f91e0ec18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 01:23:02.239152
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/01/22/image_06042025_01_22_44_10679.jpg', 2), ('/home/nano/Desktop/images/06042025/01/22/image_06042025_01_22_33_9676.jpg', 2), ('/home/nano/Desktop/images/06042025/01/22/image_06042025_01_22_24_9681.jpg', 2), ('/home/nano/Desktop/images/06042025/01/22/image_06042025_01_22_14_10723.jpg', 2), ('/home/nano/Desktop/images/06042025/01/21/image_06042025_01_22_03_9677.jpg', 2), ('/home/nano/Desktop/images/06042025/01/21/image_06042025_01_21_54_9654.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8bd96c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8bd96c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8bd96c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 01:25:32.031966
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/01/25/image_06042025_01_25_44_10673.jpg', 2), ('/home/nano/Desktop/images/06042025/01/25/image_06042025_01_25_33_9659.jpg', 2), ('/home/nano/Desktop/images/06042025/01/25/image_06042025_01_25_24_9661.jpg', 2), ('/home/nano/Desktop/images/06042025/01/25/image_06042025_01_25_14_10690.jpg', 2), ('/home/nano/Desktop/images/06042025/01/24/image_06042025_01_25_03_9668.jpg', 2), ('/home/nano/Desktop/images/06042025/01/24/image_06042025_01_24_54_9783.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9a45bc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9a45bc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9a45bc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 01:28:02.646044
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/01/27/image_06042025_01_27_44_9779.jpg', 2), ('/home/nano/Desktop/images/06042025/01/27/image_06042025_01_27_34_10792.jpg', 2), ('/home/nano/Desktop/images/06042025/01/27/image_06042025_01_27_23_9779.jpg', 2), ('/home/nano/Desktop/images/06042025/01/27/image_06042025_01_27_13_9808.jpg', 2), ('/home/nano/Desktop/images/06042025/01/26/image_06042025_01_27_04_9782.jpg', 2), ('/home/nano/Desktop/images/06042025/01/26/image_06042025_01_26_44_10793.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fb643ac18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb643ac18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb643ac18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 01:30:32.585278
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/01/30/image_06042025_01_30_44_9671.jpg', 2), ('/home/nano/Desktop/images/06042025/01/30/image_06042025_01_30_34_10673.jpg', 2), ('/home/nano/Desktop/images/06042025/01/30/image_06042025_01_30_23_9792.jpg', 2), ('/home/nano/Desktop/images/06042025/01/30/image_06042025_01_30_13_9858.jpg', 2), ('/home/nano/Desktop/images/06042025/01/29/image_06042025_01_30_04_9817.jpg', 2), ('/home/nano/Desktop/images/06042025/01/29/image_06042025_01_29_54_9794.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f98bddba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f98bddba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f98bddba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 01:33:02.343032
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/01/32/image_06042025_01_32_44_9669.jpg', 2), ('/home/nano/Desktop/images/06042025/01/32/image_06042025_01_32_34_10679.jpg', 2), ('/home/nano/Desktop/images/06042025/01/32/image_06042025_01_32_23_9678.jpg', 2), ('/home/nano/Desktop/images/06042025/01/32/image_06042025_01_32_14_9697.jpg', 2), ('/home/nano/Desktop/images/06042025/01/31/image_06042025_01_32_04_10681.jpg', 2), ('/home/nano/Desktop/images/06042025/01/31/image_06042025_01_31_53_9659.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f7863ec18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7863ec18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7863ec18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 01:35:32.166481
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/01/35/image_06042025_01_35_44_9848.jpg', 2), ('/home/nano/Desktop/images/06042025/01/35/image_06042025_01_35_34_9851.jpg', 2), ('/home/nano/Desktop/images/06042025/01/35/image_06042025_01_35_24_10782.jpg', 2), ('/home/nano/Desktop/images/06042025/01/35/image_06042025_01_35_13_9818.jpg', 2), ('/home/nano/Desktop/images/06042025/01/34/image_06042025_01_35_03_9827.jpg', 2), ('/home/nano/Desktop/images/06042025/01/34/image_06042025_01_34_54_9811.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa54d2c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa54d2c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa54d2c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 01:38:02.779398
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/01/37/image_06042025_01_37_44_10882.jpg', 2), ('/home/nano/Desktop/images/06042025/01/37/image_06042025_01_37_33_9853.jpg', 2), ('/home/nano/Desktop/images/06042025/01/37/image_06042025_01_37_23_9851.jpg', 2), ('/home/nano/Desktop/images/06042025/01/37/image_06042025_01_37_13_9872.jpg', 2), ('/home/nano/Desktop/images/06042025/01/36/image_06042025_01_37_04_9871.jpg', 2), ('/home/nano/Desktop/images/06042025/01/36/image_06042025_01_36_54_9844.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fab4b5c50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fab4b5c50>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fab4b5c50>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 01:40:32.714591
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/01/40/image_06042025_01_40_44_9797.jpg', 2), ('/home/nano/Desktop/images/06042025/01/40/image_06042025_01_40_34_10805.jpg', 2), ('/home/nano/Desktop/images/06042025/01/40/image_06042025_01_40_23_9792.jpg', 2), ('/home/nano/Desktop/images/06042025/01/40/image_06042025_01_40_14_9816.jpg', 2), ('/home/nano/Desktop/images/06042025/01/39/image_06042025_01_40_04_9799.jpg', 2), ('/home/nano/Desktop/images/06042025/01/39/image_06042025_01_39_54_9792.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9134cc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9134cc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9134cc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 01:43:02.521274
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/01/42/image_06042025_01_42_33_9675.jpg', 2), ('/home/nano/Desktop/images/06042025/01/42/image_06042025_01_42_24_9700.jpg', 2), ('/home/nano/Desktop/images/06042025/01/42/image_06042025_01_42_14_10729.jpg', 2), ('/home/nano/Desktop/images/06042025/01/41/image_06042025_01_42_03_9713.jpg', 2), ('/home/nano/Desktop/images/06042025/01/41/image_06042025_01_41_53_9778.jpg', 2), ('/home/nano/Desktop/images/06042025/01/41/image_06042025_01_41_44_9651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f7dacdc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7dacdc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7dacdc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 01:45:32.245293
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/01/45/image_06042025_01_45_44_9774.jpg', 2), ('/home/nano/Desktop/images/06042025/01/45/image_06042025_01_45_34_9770.jpg', 2), ('/home/nano/Desktop/images/06042025/01/45/image_06042025_01_45_24_10789.jpg', 2), ('/home/nano/Desktop/images/06042025/01/45/image_06042025_01_45_13_9696.jpg', 2), ('/home/nano/Desktop/images/06042025/01/44/image_06042025_01_45_03_9687.jpg', 2), ('/home/nano/Desktop/images/06042025/01/44/image_06042025_01_44_44_10683.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa71c4c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa71c4c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa71c4c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 01:48:02.126831
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/01/47/image_06042025_01_47_44_9819.jpg', 2), ('/home/nano/Desktop/images/06042025/01/47/image_06042025_01_47_34_9839.jpg', 2), ('/home/nano/Desktop/images/06042025/01/47/image_06042025_01_47_24_10832.jpg', 2), ('/home/nano/Desktop/images/06042025/01/47/image_06042025_01_47_13_9843.jpg', 2), ('/home/nano/Desktop/images/06042025/01/46/image_06042025_01_47_03_9686.jpg', 2), ('/home/nano/Desktop/images/06042025/01/46/image_06042025_01_46_44_10711.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f7bea9c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7bea9c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7bea9c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 01:50:32.159876
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/01/50/image_06042025_01_50_44_10683.jpg', 2), ('/home/nano/Desktop/images/06042025/01/50/image_06042025_01_50_33_9673.jpg', 2), ('/home/nano/Desktop/images/06042025/01/50/image_06042025_01_50_24_9672.jpg', 2), ('/home/nano/Desktop/images/06042025/01/50/image_06042025_01_50_14_10705.jpg', 2), ('/home/nano/Desktop/images/06042025/01/49/image_06042025_01_50_03_9717.jpg', 2), ('/home/nano/Desktop/images/06042025/01/49/image_06042025_01_49_53_9677.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa52ebc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa52ebc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa52ebc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 01:53:03.028331
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/01/52/image_06042025_01_52_43_9663.jpg', 2), ('/home/nano/Desktop/images/06042025/01/52/image_06042025_01_52_34_9681.jpg', 2), ('/home/nano/Desktop/images/06042025/01/52/image_06042025_01_52_24_10681.jpg', 2), ('/home/nano/Desktop/images/06042025/01/52/image_06042025_01_52_13_9697.jpg', 2), ('/home/nano/Desktop/images/06042025/01/51/image_06042025_01_52_03_9681.jpg', 2), ('/home/nano/Desktop/images/06042025/01/51/image_06042025_01_51_54_9680.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8645ac18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8645ac18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8645ac18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 01:55:32.744628
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/01/55/image_06042025_01_55_44_9815.jpg', 2), ('/home/nano/Desktop/images/06042025/01/55/image_06042025_01_55_34_10778.jpg', 2), ('/home/nano/Desktop/images/06042025/01/55/image_06042025_01_55_23_9779.jpg', 2), ('/home/nano/Desktop/images/06042025/01/55/image_06042025_01_55_13_9691.jpg', 2), ('/home/nano/Desktop/images/06042025/01/54/image_06042025_01_55_04_9675.jpg', 2), ('/home/nano/Desktop/images/06042025/01/54/image_06042025_01_54_43_9690.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa0cebc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa0cebc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa0cebc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 01:59:03.445377
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/01/58/image_06042025_01_58_44_9784.jpg', 2), ('/home/nano/Desktop/images/06042025/01/58/image_06042025_01_58_24_10799.jpg', 2), ('/home/nano/Desktop/images/06042025/01/58/image_06042025_01_58_13_9875.jpg', 2), ('/home/nano/Desktop/images/06042025/01/57/image_06042025_01_58_03_9839.jpg', 2), ('/home/nano/Desktop/images/06042025/01/57/image_06042025_01_57_54_9824.jpg', 2), ('/home/nano/Desktop/images/06042025/01/57/image_06042025_01_57_44_9813.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f90749c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f90749c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f90749c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 02:01:31.812563
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/02/01/image_06042025_02_01_44_9856.jpg', 2), ('/home/nano/Desktop/images/06042025/02/01/image_06042025_02_01_34_9865.jpg', 2), ('/home/nano/Desktop/images/06042025/02/01/image_06042025_02_01_24_9865.jpg', 2), ('/home/nano/Desktop/images/06042025/02/01/image_06042025_02_01_14_9922.jpg', 2), ('/home/nano/Desktop/images/06042025/02/00/image_06042025_02_01_04_10831.jpg', 2), ('/home/nano/Desktop/images/06042025/02/00/image_06042025_02_00_53_9822.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fada3dc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fada3dc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fada3dc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 02:04:02.587751
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/02/03/image_06042025_02_03_43_9841.jpg', 2), ('/home/nano/Desktop/images/06042025/02/03/image_06042025_02_03_34_9822.jpg', 2), ('/home/nano/Desktop/images/06042025/02/03/image_06042025_02_03_24_9781.jpg', 2), ('/home/nano/Desktop/images/06042025/02/03/image_06042025_02_03_14_10790.jpg', 2), ('/home/nano/Desktop/images/06042025/02/02/image_06042025_02_02_53_9812.jpg', 2), ('/home/nano/Desktop/images/06042025/02/02/image_06042025_02_02_44_9813.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa8becc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa8becc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa8becc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 02:06:32.295824
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/02/06/image_06042025_02_06_34_9690.jpg', 2), ('/home/nano/Desktop/images/06042025/02/06/image_06042025_02_06_13_9696.jpg', 2), ('/home/nano/Desktop/images/06042025/02/05/image_06042025_02_06_04_9680.jpg', 2), ('/home/nano/Desktop/images/06042025/02/05/image_06042025_02_05_54_10682.jpg', 2), ('/home/nano/Desktop/images/06042025/02/05/image_06042025_02_05_43_9673.jpg', 2), ('/home/nano/Desktop/images/06042025/02/05/image_06042025_02_05_34_9660.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f97385c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f97385c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f97385c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 02:09:03.247879
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/02/08/image_06042025_02_08_44_10794.jpg', 2), ('/home/nano/Desktop/images/06042025/02/08/image_06042025_02_08_33_9772.jpg', 2), ('/home/nano/Desktop/images/06042025/02/08/image_06042025_02_08_24_9785.jpg', 2), ('/home/nano/Desktop/images/06042025/02/08/image_06042025_02_08_14_9676.jpg', 2), ('/home/nano/Desktop/images/06042025/02/07/image_06042025_02_08_04_10664.jpg', 2), ('/home/nano/Desktop/images/06042025/02/07/image_06042025_02_07_53_9797.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f76a3cc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f76a3cc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f76a3cc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 02:11:31.805517
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/02/11/image_06042025_02_11_44_10660.jpg', 2), ('/home/nano/Desktop/images/06042025/02/11/image_06042025_02_11_33_9652.jpg', 2), ('/home/nano/Desktop/images/06042025/02/11/image_06042025_02_11_24_9666.jpg', 2), ('/home/nano/Desktop/images/06042025/02/11/image_06042025_02_11_14_10678.jpg', 2), ('/home/nano/Desktop/images/06042025/02/10/image_06042025_02_11_03_9662.jpg', 2), ('/home/nano/Desktop/images/06042025/02/10/image_06042025_02_10_54_9833.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f88c14c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f88c14c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f88c14c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 02:14:02.670359
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/02/13/image_06042025_02_13_43_9657.jpg', 2), ('/home/nano/Desktop/images/06042025/02/13/image_06042025_02_13_34_9676.jpg', 2), ('/home/nano/Desktop/images/06042025/02/13/image_06042025_02_13_24_10669.jpg', 2), ('/home/nano/Desktop/images/06042025/02/13/image_06042025_02_13_13_9679.jpg', 2), ('/home/nano/Desktop/images/06042025/02/12/image_06042025_02_13_04_9667.jpg', 2), ('/home/nano/Desktop/images/06042025/02/12/image_06042025_02_12_54_10798.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f88abeba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f88abeba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f88abeba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 02:16:32.317317
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/02/16/image_06042025_02_16_44_9668.jpg', 2), ('/home/nano/Desktop/images/06042025/02/16/image_06042025_02_16_34_10675.jpg', 2), ('/home/nano/Desktop/images/06042025/02/16/image_06042025_02_16_23_9670.jpg', 2), ('/home/nano/Desktop/images/06042025/02/15/image_06042025_02_16_04_10828.jpg', 2), ('/home/nano/Desktop/images/06042025/02/15/image_06042025_02_15_53_9799.jpg', 2), ('/home/nano/Desktop/images/06042025/02/15/image_06042025_02_15_43_9800.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f971d8c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f971d8c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f971d8c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 02:19:03.396801
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/02/18/image_06042025_02_18_44_9790.jpg', 2), ('/home/nano/Desktop/images/06042025/02/18/image_06042025_02_18_34_10658.jpg', 2), ('/home/nano/Desktop/images/06042025/02/18/image_06042025_02_18_23_9660.jpg', 2), ('/home/nano/Desktop/images/06042025/02/18/image_06042025_02_18_14_9661.jpg', 2), ('/home/nano/Desktop/images/06042025/02/17/image_06042025_02_17_53_9644.jpg', 2), ('/home/nano/Desktop/images/06042025/02/17/image_06042025_02_17_44_9774.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fae1f6c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fae1f6c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fae1f6c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 02:21:31.809852
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/02/21/image_06042025_02_21_44_9660.jpg', 2), ('/home/nano/Desktop/images/06042025/02/21/image_06042025_02_21_34_10789.jpg', 2), ('/home/nano/Desktop/images/06042025/02/21/image_06042025_02_21_23_9783.jpg', 2), ('/home/nano/Desktop/images/06042025/02/21/image_06042025_02_21_13_9851.jpg', 2), ('/home/nano/Desktop/images/06042025/02/20/image_06042025_02_21_04_9828.jpg', 2), ('/home/nano/Desktop/images/06042025/02/20/image_06042025_02_20_54_9777.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f94a8ac18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f94a8ac18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f94a8ac18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 02:24:02.643370
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/02/23/image_06042025_02_23_44_9658.jpg', 2), ('/home/nano/Desktop/images/06042025/02/23/image_06042025_02_23_34_10673.jpg', 2), ('/home/nano/Desktop/images/06042025/02/23/image_06042025_02_23_23_9668.jpg', 2), ('/home/nano/Desktop/images/06042025/02/23/image_06042025_02_23_14_9687.jpg', 2), ('/home/nano/Desktop/images/06042025/02/22/image_06042025_02_23_04_10690.jpg', 2), ('/home/nano/Desktop/images/06042025/02/22/image_06042025_02_22_44_9669.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f94eccc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f94eccc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f94eccc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 02:26:32.306538
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/02/26/image_06042025_02_26_43_9646.jpg', 2), ('/home/nano/Desktop/images/06042025/02/26/image_06042025_02_26_34_9645.jpg', 2), ('/home/nano/Desktop/images/06042025/02/26/image_06042025_02_26_24_10788.jpg', 2), ('/home/nano/Desktop/images/06042025/02/26/image_06042025_02_26_13_9801.jpg', 2), ('/home/nano/Desktop/images/06042025/02/25/image_06042025_02_26_04_9669.jpg', 2), ('/home/nano/Desktop/images/06042025/02/25/image_06042025_02_25_54_10674.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9bfcbc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9bfcbc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9bfcbc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 02:29:03.320424
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/02/28/image_06042025_02_28_43_9837.jpg', 2), ('/home/nano/Desktop/images/06042025/02/28/image_06042025_02_28_33_9846.jpg', 2), ('/home/nano/Desktop/images/06042025/02/28/image_06042025_02_28_24_9847.jpg', 2), ('/home/nano/Desktop/images/06042025/02/28/image_06042025_02_28_14_9883.jpg', 2), ('/home/nano/Desktop/images/06042025/02/27/image_06042025_02_28_04_9835.jpg', 2), ('/home/nano/Desktop/images/06042025/02/27/image_06042025_02_27_54_10653.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa449fc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa449fc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa449fc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 02:31:31.819496
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/02/31/image_06042025_02_31_44_10792.jpg', 2), ('/home/nano/Desktop/images/06042025/02/31/image_06042025_02_31_33_9655.jpg', 2), ('/home/nano/Desktop/images/06042025/02/31/image_06042025_02_31_14_10686.jpg', 2), ('/home/nano/Desktop/images/06042025/02/30/image_06042025_02_31_03_9661.jpg', 2), ('/home/nano/Desktop/images/06042025/02/30/image_06042025_02_30_54_9659.jpg', 2), ('/home/nano/Desktop/images/06042025/02/30/image_06042025_02_30_44_10782.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fab7e2c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fab7e2c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fab7e2c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 02:34:02.672107
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/02/33/image_06042025_02_33_44_9651.jpg', 2), ('/home/nano/Desktop/images/06042025/02/33/image_06042025_02_33_34_10663.jpg', 2), ('/home/nano/Desktop/images/06042025/02/33/image_06042025_02_33_23_9703.jpg', 2), ('/home/nano/Desktop/images/06042025/02/33/image_06042025_02_33_14_9667.jpg', 2), ('/home/nano/Desktop/images/06042025/02/32/image_06042025_02_32_44_9725.jpg', 2), ('/home/nano/Desktop/images/06042025/02/32/image_06042025_02_32_34_10824.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9477fc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9477fc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9477fc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 02:36:32.367544
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/02/36/image_06042025_02_36_44_9818.jpg', 2), ('/home/nano/Desktop/images/06042025/02/36/image_06042025_02_36_34_9822.jpg', 2), ('/home/nano/Desktop/images/06042025/02/36/image_06042025_02_36_24_10831.jpg', 2), ('/home/nano/Desktop/images/06042025/02/36/image_06042025_02_36_13_9843.jpg', 2), ('/home/nano/Desktop/images/06042025/02/35/image_06042025_02_36_03_9833.jpg', 2), ('/home/nano/Desktop/images/06042025/02/35/image_06042025_02_35_54_9820.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fb4568c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb4568c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb4568c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 02:39:03.340890
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/02/38/image_06042025_02_38_44_9862.jpg', 2), ('/home/nano/Desktop/images/06042025/02/38/image_06042025_02_38_34_9857.jpg', 2), ('/home/nano/Desktop/images/06042025/02/38/image_06042025_02_38_24_9861.jpg', 2), ('/home/nano/Desktop/images/06042025/02/38/image_06042025_02_38_14_10848.jpg', 2), ('/home/nano/Desktop/images/06042025/02/37/image_06042025_02_38_03_9825.jpg', 2), ('/home/nano/Desktop/images/06042025/02/37/image_06042025_02_37_53_9818.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f7dcd8c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7dcd8c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7dcd8c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 02:41:31.939451
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/02/41/image_06042025_02_41_44_9649.jpg', 2), ('/home/nano/Desktop/images/06042025/02/41/image_06042025_02_41_34_10658.jpg', 2), ('/home/nano/Desktop/images/06042025/02/41/image_06042025_02_41_23_9651.jpg', 2), ('/home/nano/Desktop/images/06042025/02/41/image_06042025_02_41_14_9670.jpg', 2), ('/home/nano/Desktop/images/06042025/02/40/image_06042025_02_40_53_9730.jpg', 2), ('/home/nano/Desktop/images/06042025/02/40/image_06042025_02_40_44_9797.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f964c7c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f964c7c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f964c7c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 02:44:02.814105
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/02/43/image_06042025_02_43_44_9657.jpg', 2), ('/home/nano/Desktop/images/06042025/02/43/image_06042025_02_43_34_10650.jpg', 2), ('/home/nano/Desktop/images/06042025/02/43/image_06042025_02_43_24_9639.jpg', 2), ('/home/nano/Desktop/images/06042025/02/43/image_06042025_02_43_14_10665.jpg', 2), ('/home/nano/Desktop/images/06042025/02/42/image_06042025_02_42_54_9640.jpg', 2), ('/home/nano/Desktop/images/06042025/02/42/image_06042025_02_42_44_10649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f92c07c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f92c07c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f92c07c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 02:46:32.105531
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/02/46/image_06042025_02_46_44_9653.jpg', 2), ('/home/nano/Desktop/images/06042025/02/46/image_06042025_02_46_34_10662.jpg', 2), ('/home/nano/Desktop/images/06042025/02/46/image_06042025_02_46_23_9645.jpg', 2), ('/home/nano/Desktop/images/06042025/02/46/image_06042025_02_46_14_9684.jpg', 2), ('/home/nano/Desktop/images/06042025/02/45/image_06042025_02_46_04_10665.jpg', 2), ('/home/nano/Desktop/images/06042025/02/45/image_06042025_02_45_53_9836.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f89c59ba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f89c59ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f89c59ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 02:49:03.172127
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/02/48/image_06042025_02_48_34_10652.jpg', 2), ('/home/nano/Desktop/images/06042025/02/48/image_06042025_02_48_23_9803.jpg', 2), ('/home/nano/Desktop/images/06042025/02/48/image_06042025_02_48_13_9776.jpg', 2), ('/home/nano/Desktop/images/06042025/02/47/image_06042025_02_48_04_9816.jpg', 2), ('/home/nano/Desktop/images/06042025/02/47/image_06042025_02_47_54_9804.jpg', 2), ('/home/nano/Desktop/images/06042025/02/47/image_06042025_02_47_44_10812.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8e203c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8e203c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8e203c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 02:51:32.606251
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/02/51/image_06042025_02_51_43_9648.jpg', 2), ('/home/nano/Desktop/images/06042025/02/51/image_06042025_02_51_24_9822.jpg', 2), ('/home/nano/Desktop/images/06042025/02/51/image_06042025_02_51_14_10837.jpg', 2), ('/home/nano/Desktop/images/06042025/02/50/image_06042025_02_51_03_9656.jpg', 2), ('/home/nano/Desktop/images/06042025/02/50/image_06042025_02_50_54_9815.jpg', 2), ('/home/nano/Desktop/images/06042025/02/50/image_06042025_02_50_44_9654.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9c4cac18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9c4cac18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9c4cac18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 02:54:02.507025
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/02/53/image_06042025_02_53_43_9823.jpg', 2), ('/home/nano/Desktop/images/06042025/02/53/image_06042025_02_53_34_9676.jpg', 2), ('/home/nano/Desktop/images/06042025/02/53/image_06042025_02_53_24_10662.jpg', 2), ('/home/nano/Desktop/images/06042025/02/52/image_06042025_02_52_54_10665.jpg', 2), ('/home/nano/Desktop/images/06042025/02/52/image_06042025_02_52_43_9652.jpg', 2), ('/home/nano/Desktop/images/06042025/02/52/image_06042025_02_52_24_10682.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa26acc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa26acc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa26acc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 02:56:32.138104
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 02:58:02.625049
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/02/57/image_06042025_02_57_24_10662.jpg', 2), ('/home/nano/Desktop/images/06042025/02/57/image_06042025_02_57_13_9659.jpg', 2), ('/home/nano/Desktop/images/06042025/02/56/image_06042025_02_57_04_9666.jpg', 2), ('/home/nano/Desktop/images/06042025/02/56/image_06042025_02_56_54_10658.jpg', 2), ('/home/nano/Desktop/images/06042025/02/56/image_06042025_02_56_43_9648.jpg', 2), ('/home/nano/Desktop/images/06042025/02/56/image_06042025_02_56_34_9793.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7faec3cba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7faec3cba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7faec3cba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 03:00:32.109892
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/03/00/image_06042025_03_00_43_9646.jpg', 2), ('/home/nano/Desktop/images/06042025/03/00/image_06042025_03_00_34_9645.jpg', 2), ('/home/nano/Desktop/images/06042025/03/00/image_06042025_03_00_24_10660.jpg', 2), ('/home/nano/Desktop/images/06042025/02/59/image_06042025_03_00_04_9665.jpg', 2), ('/home/nano/Desktop/images/06042025/02/59/image_06042025_02_59_54_10651.jpg', 2), ('/home/nano/Desktop/images/06042025/02/59/image_06042025_02_59_43_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9b90ec18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9b90ec18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9b90ec18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 03:03:02.851594
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/03/02/image_06042025_03_02_34_10656.jpg', 2), ('/home/nano/Desktop/images/06042025/03/02/image_06042025_03_02_23_9646.jpg', 2), ('/home/nano/Desktop/images/06042025/03/02/image_06042025_03_02_14_9664.jpg', 2), ('/home/nano/Desktop/images/06042025/03/01/image_06042025_03_02_04_10656.jpg', 2), ('/home/nano/Desktop/images/06042025/03/01/image_06042025_03_01_53_9647.jpg', 2), ('/home/nano/Desktop/images/06042025/03/01/image_06042025_03_01_44_9766.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f86a98c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f86a98c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f86a98c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 03:05:32.590296
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/03/05/image_06042025_03_05_43_9648.jpg', 2), ('/home/nano/Desktop/images/06042025/03/05/image_06042025_03_05_34_9647.jpg', 2), ('/home/nano/Desktop/images/06042025/03/05/image_06042025_03_05_24_10657.jpg', 2), ('/home/nano/Desktop/images/06042025/03/05/image_06042025_03_05_13_9667.jpg', 2), ('/home/nano/Desktop/images/06042025/03/04/image_06042025_03_05_04_9649.jpg', 2), ('/home/nano/Desktop/images/06042025/03/04/image_06042025_03_04_54_10656.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f7b378c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7b378c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7b378c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 03:08:02.240300
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/03/07/image_06042025_03_07_43_9660.jpg', 2), ('/home/nano/Desktop/images/06042025/03/07/image_06042025_03_07_34_9665.jpg', 2), ('/home/nano/Desktop/images/06042025/03/07/image_06042025_03_07_24_10674.jpg', 2), ('/home/nano/Desktop/images/06042025/03/07/image_06042025_03_07_13_9671.jpg', 2), ('/home/nano/Desktop/images/06042025/03/06/image_06042025_03_07_04_9666.jpg', 2), ('/home/nano/Desktop/images/06042025/03/06/image_06042025_03_06_54_10663.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9eb36c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9eb36c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9eb36c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 03:10:32.072187
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/03/10/image_06042025_03_10_44_9813.jpg', 2), ('/home/nano/Desktop/images/06042025/03/10/image_06042025_03_10_34_9814.jpg', 2), ('/home/nano/Desktop/images/06042025/03/10/image_06042025_03_10_24_9818.jpg', 2), ('/home/nano/Desktop/images/06042025/03/10/image_06042025_03_10_14_10611.jpg', 2), ('/home/nano/Desktop/images/06042025/03/09/image_06042025_03_10_03_9819.jpg', 2), ('/home/nano/Desktop/images/06042025/03/09/image_06042025_03_09_54_9734.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8051ac18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8051ac18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8051ac18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 03:13:02.873340
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/03/12/image_06042025_03_12_44_10679.jpg', 2), ('/home/nano/Desktop/images/06042025/03/12/image_06042025_03_12_24_9833.jpg', 2), ('/home/nano/Desktop/images/06042025/03/12/image_06042025_03_12_14_9822.jpg', 2), ('/home/nano/Desktop/images/06042025/03/11/image_06042025_03_12_04_10829.jpg', 2), ('/home/nano/Desktop/images/06042025/03/11/image_06042025_03_11_53_9811.jpg', 2), ('/home/nano/Desktop/images/06042025/03/11/image_06042025_03_11_43_9813.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8e31ac18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8e31ac18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8e31ac18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 03:15:32.602671
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/03/15/image_06042025_03_15_43_9648.jpg', 2), ('/home/nano/Desktop/images/06042025/03/15/image_06042025_03_15_34_9647.jpg', 2), ('/home/nano/Desktop/images/06042025/03/15/image_06042025_03_15_24_10673.jpg', 2), ('/home/nano/Desktop/images/06042025/03/15/image_06042025_03_15_13_9661.jpg', 2), ('/home/nano/Desktop/images/06042025/03/14/image_06042025_03_14_54_10671.jpg', 2), ('/home/nano/Desktop/images/06042025/03/14/image_06042025_03_14_43_9662.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8d9e3c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8d9e3c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8d9e3c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 03:18:02.204112
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/03/17/image_06042025_03_17_43_9642.jpg', 2), ('/home/nano/Desktop/images/06042025/03/17/image_06042025_03_17_34_9647.jpg', 2), ('/home/nano/Desktop/images/06042025/03/17/image_06042025_03_17_24_10654.jpg', 2), ('/home/nano/Desktop/images/06042025/03/17/image_06042025_03_17_13_9661.jpg', 2), ('/home/nano/Desktop/images/06042025/03/16/image_06042025_03_17_04_9656.jpg', 2), ('/home/nano/Desktop/images/06042025/03/16/image_06042025_03_16_54_10653.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa61bfc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa61bfc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa61bfc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 03:20:32.099072
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/03/20/image_06042025_03_20_43_9650.jpg', 2), ('/home/nano/Desktop/images/06042025/03/20/image_06042025_03_20_34_9802.jpg', 2), ('/home/nano/Desktop/images/06042025/03/20/image_06042025_03_20_24_9800.jpg', 2), ('/home/nano/Desktop/images/06042025/03/20/image_06042025_03_20_14_10823.jpg', 2), ('/home/nano/Desktop/images/06042025/03/19/image_06042025_03_20_03_9804.jpg', 2), ('/home/nano/Desktop/images/06042025/03/19/image_06042025_03_19_53_9791.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f96b9ec18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f96b9ec18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f96b9ec18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 03:23:02.666928
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/03/22/image_06042025_03_22_43_9650.jpg', 2), ('/home/nano/Desktop/images/06042025/03/22/image_06042025_03_22_34_9656.jpg', 2), ('/home/nano/Desktop/images/06042025/03/22/image_06042025_03_22_13_9673.jpg', 2), ('/home/nano/Desktop/images/06042025/03/21/image_06042025_03_21_54_10664.jpg', 2), ('/home/nano/Desktop/images/06042025/03/21/image_06042025_03_21_43_9656.jpg', 2), ('/home/nano/Desktop/images/06042025/03/21/image_06042025_03_21_34_9654.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f7af70c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7af70c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7af70c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 03:25:32.588165
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/03/25/image_06042025_03_25_34_9799.jpg', 2), ('/home/nano/Desktop/images/06042025/03/24/image_06042025_03_25_03_9806.jpg', 2), ('/home/nano/Desktop/images/06042025/03/24/image_06042025_03_24_54_9793.jpg', 2), ('/home/nano/Desktop/images/06042025/03/24/image_06042025_03_24_44_9795.jpg', 2), ('/home/nano/Desktop/images/06042025/03/24/image_06042025_03_24_34_10802.jpg', 2), ('/home/nano/Desktop/images/06042025/03/24/image_06042025_03_24_23_9646.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f923e6c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f923e6c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f923e6c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 03:28:02.284212
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/03/27/image_06042025_03_27_34_10658.jpg', 2), ('/home/nano/Desktop/images/06042025/03/27/image_06042025_03_27_23_9650.jpg', 2), ('/home/nano/Desktop/images/06042025/03/27/image_06042025_03_27_14_9667.jpg', 2), ('/home/nano/Desktop/images/06042025/03/26/image_06042025_03_27_04_10662.jpg', 2), ('/home/nano/Desktop/images/06042025/03/26/image_06042025_03_26_53_9648.jpg', 2), ('/home/nano/Desktop/images/06042025/03/26/image_06042025_03_26_34_10770.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9bbb8c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9bbb8c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9bbb8c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 03:30:32.048069
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/03/30/image_06042025_03_30_23_9652.jpg', 2), ('/home/nano/Desktop/images/06042025/03/30/image_06042025_03_30_14_9668.jpg', 2), ('/home/nano/Desktop/images/06042025/03/29/image_06042025_03_30_04_10663.jpg', 2), ('/home/nano/Desktop/images/06042025/03/29/image_06042025_03_29_53_9648.jpg', 2), ('/home/nano/Desktop/images/06042025/03/29/image_06042025_03_29_44_10656.jpg', 2), ('/home/nano/Desktop/images/06042025/03/29/image_06042025_03_29_33_9666.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f85b1cba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f85b1cba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f85b1cba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 03:33:02.839514
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/03/32/image_06042025_03_32_43_9644.jpg', 2), ('/home/nano/Desktop/images/06042025/03/32/image_06042025_03_32_34_9645.jpg', 2), ('/home/nano/Desktop/images/06042025/03/32/image_06042025_03_32_24_10675.jpg', 2), ('/home/nano/Desktop/images/06042025/03/32/image_06042025_03_32_13_9685.jpg', 2), ('/home/nano/Desktop/images/06042025/03/31/image_06042025_03_31_54_10668.jpg', 2), ('/home/nano/Desktop/images/06042025/03/31/image_06042025_03_31_43_9769.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa6f1dc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa6f1dc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa6f1dc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 03:35:32.534875
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/03/35/image_06042025_03_35_44_10668.jpg', 2), ('/home/nano/Desktop/images/06042025/03/35/image_06042025_03_35_33_9652.jpg', 2), ('/home/nano/Desktop/images/06042025/03/35/image_06042025_03_35_24_9648.jpg', 2), ('/home/nano/Desktop/images/06042025/03/35/image_06042025_03_35_14_10681.jpg', 2), ('/home/nano/Desktop/images/06042025/03/34/image_06042025_03_35_03_9665.jpg', 2), ('/home/nano/Desktop/images/06042025/03/34/image_06042025_03_34_54_9648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9d37bc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9d37bc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9d37bc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 03:38:02.211455
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/03/37/image_06042025_03_37_34_10579.jpg', 2), ('/home/nano/Desktop/images/06042025/03/37/image_06042025_03_37_14_10613.jpg', 2), ('/home/nano/Desktop/images/06042025/03/36/image_06042025_03_37_03_9570.jpg', 2), ('/home/nano/Desktop/images/06042025/03/36/image_06042025_03_36_54_9568.jpg', 2), ('/home/nano/Desktop/images/06042025/03/36/image_06042025_03_36_44_10653.jpg', 2), ('/home/nano/Desktop/images/06042025/03/36/image_06042025_03_36_33_9651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f81feec18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f81feec18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f81feec18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 03:40:32.006746
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/03/40/image_06042025_03_40_43_9798.jpg', 2), ('/home/nano/Desktop/images/06042025/03/40/image_06042025_03_40_33_9800.jpg', 2), ('/home/nano/Desktop/images/06042025/03/40/image_06042025_03_40_24_9808.jpg', 2), ('/home/nano/Desktop/images/06042025/03/40/image_06042025_03_40_14_9880.jpg', 2), ('/home/nano/Desktop/images/06042025/03/39/image_06042025_03_40_04_9851.jpg', 2), ('/home/nano/Desktop/images/06042025/03/39/image_06042025_03_39_54_10582.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f83fb8c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f83fb8c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f83fb8c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 03:43:02.620121
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/03/42/image_06042025_03_42_44_10673.jpg', 2), ('/home/nano/Desktop/images/06042025/03/42/image_06042025_03_42_33_9648.jpg', 2), ('/home/nano/Desktop/images/06042025/03/42/image_06042025_03_42_24_9650.jpg', 2), ('/home/nano/Desktop/images/06042025/03/42/image_06042025_03_42_14_10695.jpg', 2), ('/home/nano/Desktop/images/06042025/03/41/image_06042025_03_41_54_9759.jpg', 2), ('/home/nano/Desktop/images/06042025/03/41/image_06042025_03_41_44_10781.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9a311c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9a311c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9a311c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 03:45:32.490422
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/03/45/image_06042025_03_45_43_9659.jpg', 2), ('/home/nano/Desktop/images/06042025/03/45/image_06042025_03_45_34_9658.jpg', 2), ('/home/nano/Desktop/images/06042025/03/45/image_06042025_03_45_24_10667.jpg', 2), ('/home/nano/Desktop/images/06042025/03/45/image_06042025_03_45_13_9678.jpg', 2), ('/home/nano/Desktop/images/06042025/03/44/image_06042025_03_45_04_9789.jpg', 2), ('/home/nano/Desktop/images/06042025/03/44/image_06042025_03_44_54_9788.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f82c97c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f82c97c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f82c97c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 03:48:03.070566
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/03/47/image_06042025_03_47_34_9784.jpg', 2), ('/home/nano/Desktop/images/06042025/03/47/image_06042025_03_47_14_10814.jpg', 2), ('/home/nano/Desktop/images/06042025/03/46/image_06042025_03_47_03_9794.jpg', 2), ('/home/nano/Desktop/images/06042025/03/46/image_06042025_03_46_53_9800.jpg', 2), ('/home/nano/Desktop/images/06042025/03/46/image_06042025_03_46_44_9840.jpg', 2), ('/home/nano/Desktop/images/06042025/03/46/image_06042025_03_46_34_9660.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8fe11c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8fe11c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8fe11c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 03:50:31.940496
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/03/50/image_06042025_03_50_34_9653.jpg', 2), ('/home/nano/Desktop/images/06042025/03/50/image_06042025_03_50_24_10676.jpg', 2), ('/home/nano/Desktop/images/06042025/03/49/image_06042025_03_50_04_9654.jpg', 2), ('/home/nano/Desktop/images/06042025/03/49/image_06042025_03_49_54_10670.jpg', 2), ('/home/nano/Desktop/images/06042025/03/49/image_06042025_03_49_43_9651.jpg', 2), ('/home/nano/Desktop/images/06042025/03/49/image_06042025_03_49_34_9654.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8ae93c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8ae93c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8ae93c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 03:53:02.721472
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/03/52/image_06042025_03_52_24_10664.jpg', 2), ('/home/nano/Desktop/images/06042025/03/52/image_06042025_03_52_13_9675.jpg', 2), ('/home/nano/Desktop/images/06042025/03/51/image_06042025_03_52_03_9675.jpg', 2), ('/home/nano/Desktop/images/06042025/03/51/image_06042025_03_51_54_9659.jpg', 2), ('/home/nano/Desktop/images/06042025/03/51/image_06042025_03_51_44_10668.jpg', 2), ('/home/nano/Desktop/images/06042025/03/51/image_06042025_03_51_33_9658.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8b13cba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8b13cba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8b13cba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 03:55:32.493959
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/03/55/image_06042025_03_55_44_9794.jpg', 2), ('/home/nano/Desktop/images/06042025/03/55/image_06042025_03_55_34_10803.jpg', 2), ('/home/nano/Desktop/images/06042025/03/55/image_06042025_03_55_23_9787.jpg', 2), ('/home/nano/Desktop/images/06042025/03/55/image_06042025_03_55_13_9845.jpg', 2), ('/home/nano/Desktop/images/06042025/03/54/image_06042025_03_55_04_9824.jpg', 2), ('/home/nano/Desktop/images/06042025/03/54/image_06042025_03_54_54_9824.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f799c4c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f799c4c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f799c4c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 03:58:02.219965
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/03/57/image_06042025_03_57_44_10651.jpg', 2), ('/home/nano/Desktop/images/06042025/03/57/image_06042025_03_57_33_9640.jpg', 2), ('/home/nano/Desktop/images/06042025/03/57/image_06042025_03_57_13_9681.jpg', 2), ('/home/nano/Desktop/images/06042025/03/56/image_06042025_03_57_04_9647.jpg', 2), ('/home/nano/Desktop/images/06042025/03/56/image_06042025_03_56_43_9642.jpg', 2), ('/home/nano/Desktop/images/06042025/03/56/image_06042025_03_56_34_9644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f82675c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f82675c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f82675c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 04:00:32.476456
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/04/00/image_06042025_04_00_43_9684.jpg', 2), ('/home/nano/Desktop/images/06042025/04/00/image_06042025_04_00_34_9831.jpg', 2), ('/home/nano/Desktop/images/06042025/04/00/image_06042025_04_00_24_9647.jpg', 2), ('/home/nano/Desktop/images/06042025/04/00/image_06042025_04_00_14_10671.jpg', 2), ('/home/nano/Desktop/images/06042025/03/59/image_06042025_04_00_03_9646.jpg', 2), ('/home/nano/Desktop/images/06042025/03/59/image_06042025_03_59_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f7d327c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7d327c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7d327c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 04:03:03.313127
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/04/02/image_06042025_04_02_43_9647.jpg', 2), ('/home/nano/Desktop/images/06042025/04/02/image_06042025_04_02_34_10657.jpg', 2), ('/home/nano/Desktop/images/06042025/04/02/image_06042025_04_02_14_9664.jpg', 2), ('/home/nano/Desktop/images/06042025/04/01/image_06042025_04_02_04_9776.jpg', 2), ('/home/nano/Desktop/images/06042025/04/01/image_06042025_04_01_54_10801.jpg', 2), ('/home/nano/Desktop/images/06042025/04/01/image_06042025_04_01_43_9652.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8f8f5c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8f8f5c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8f8f5c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 04:05:31.941368
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/04/05/image_06042025_04_05_44_9796.jpg', 2), ('/home/nano/Desktop/images/06042025/04/05/image_06042025_04_05_34_10808.jpg', 2), ('/home/nano/Desktop/images/06042025/04/05/image_06042025_04_05_23_9785.jpg', 2), ('/home/nano/Desktop/images/06042025/04/05/image_06042025_04_05_13_9816.jpg', 2), ('/home/nano/Desktop/images/06042025/04/04/image_06042025_04_05_04_9656.jpg', 2), ('/home/nano/Desktop/images/06042025/04/04/image_06042025_04_04_54_10651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fb067cba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb067cba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb067cba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 04:08:02.622760
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/04/07/image_06042025_04_08_04_10649.jpg', 2), ('/home/nano/Desktop/images/06042025/04/07/image_06042025_04_07_44_9646.jpg', 2), ('/home/nano/Desktop/images/06042025/04/07/image_06042025_04_07_34_10654.jpg', 2), ('/home/nano/Desktop/images/06042025/04/07/image_06042025_04_07_23_9650.jpg', 2), ('/home/nano/Desktop/images/06042025/04/06/image_06042025_04_06_53_9796.jpg', 2), ('/home/nano/Desktop/images/06042025/04/06/image_06042025_04_06_44_9806.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f7ff5ac18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7ff5ac18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7ff5ac18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 04:10:32.366500
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/04/10/image_06042025_04_10_34_10657.jpg', 2), ('/home/nano/Desktop/images/06042025/04/10/image_06042025_04_10_23_9648.jpg', 2), ('/home/nano/Desktop/images/06042025/04/10/image_06042025_04_10_14_9687.jpg', 2), ('/home/nano/Desktop/images/06042025/04/09/image_06042025_04_09_44_9651.jpg', 2), ('/home/nano/Desktop/images/06042025/04/09/image_06042025_04_09_34_10658.jpg', 2), ('/home/nano/Desktop/images/06042025/04/09/image_06042025_04_09_23_9648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa88f1c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa88f1c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa88f1c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 04:13:03.143981
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/04/12/image_06042025_04_12_43_9778.jpg', 2), ('/home/nano/Desktop/images/06042025/04/12/image_06042025_04_12_33_9781.jpg', 2), ('/home/nano/Desktop/images/06042025/04/12/image_06042025_04_12_24_9781.jpg', 2), ('/home/nano/Desktop/images/06042025/04/12/image_06042025_04_12_14_9807.jpg', 2), ('/home/nano/Desktop/images/06042025/04/11/image_06042025_04_12_04_10661.jpg', 2), ('/home/nano/Desktop/images/06042025/04/11/image_06042025_04_11_53_9653.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9eb01c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9eb01c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9eb01c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 04:15:31.847211
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/04/15/image_06042025_04_15_33_9641.jpg', 2), ('/home/nano/Desktop/images/06042025/04/15/image_06042025_04_15_24_9643.jpg', 2), ('/home/nano/Desktop/images/06042025/04/15/image_06042025_04_15_14_9840.jpg', 2), ('/home/nano/Desktop/images/06042025/04/14/image_06042025_04_15_04_10800.jpg', 2), ('/home/nano/Desktop/images/06042025/04/14/image_06042025_04_14_53_9782.jpg', 2), ('/home/nano/Desktop/images/06042025/04/14/image_06042025_04_14_44_9804.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7faa251c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7faa251c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7faa251c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 04:18:02.473522
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/04/17/image_06042025_04_17_44_9656.jpg', 2), ('/home/nano/Desktop/images/06042025/04/17/image_06042025_04_17_23_9638.jpg', 2), ('/home/nano/Desktop/images/06042025/04/17/image_06042025_04_17_14_9655.jpg', 2), ('/home/nano/Desktop/images/06042025/04/16/image_06042025_04_17_04_10651.jpg', 2), ('/home/nano/Desktop/images/06042025/04/16/image_06042025_04_16_44_9656.jpg', 2), ('/home/nano/Desktop/images/06042025/04/16/image_06042025_04_16_34_10654.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fadb87c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fadb87c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fadb87c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 04:20:32.373975
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/04/20/image_06042025_04_20_44_9823.jpg', 2), ('/home/nano/Desktop/images/06042025/04/20/image_06042025_04_20_34_9826.jpg', 2), ('/home/nano/Desktop/images/06042025/04/20/image_06042025_04_20_24_10831.jpg', 2), ('/home/nano/Desktop/images/06042025/04/20/image_06042025_04_20_13_9848.jpg', 2), ('/home/nano/Desktop/images/06042025/04/19/image_06042025_04_20_03_9825.jpg', 2), ('/home/nano/Desktop/images/06042025/04/19/image_06042025_04_19_44_9821.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f86c26c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f86c26c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f86c26c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 04:23:03.322026
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/04/22/image_06042025_04_22_43_9639.jpg', 2), ('/home/nano/Desktop/images/06042025/04/22/image_06042025_04_22_34_9658.jpg', 2), ('/home/nano/Desktop/images/06042025/04/22/image_06042025_04_22_24_10650.jpg', 2), ('/home/nano/Desktop/images/06042025/04/22/image_06042025_04_22_13_9656.jpg', 2), ('/home/nano/Desktop/images/06042025/04/21/image_06042025_04_22_04_9641.jpg', 2), ('/home/nano/Desktop/images/06042025/04/21/image_06042025_04_21_54_10648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f99da2ba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f99da2ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f99da2ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 04:25:31.923963
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/04/25/image_06042025_04_25_24_9655.jpg', 2), ('/home/nano/Desktop/images/06042025/04/25/image_06042025_04_25_14_10686.jpg', 2), ('/home/nano/Desktop/images/06042025/04/24/image_06042025_04_25_03_9668.jpg', 2), ('/home/nano/Desktop/images/06042025/04/24/image_06042025_04_24_54_9654.jpg', 2), ('/home/nano/Desktop/images/06042025/04/24/image_06042025_04_24_44_10649.jpg', 2), ('/home/nano/Desktop/images/06042025/04/24/image_06042025_04_24_13_9659.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9e740c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9e740c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9e740c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 04:28:02.419650
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/04/27/image_06042025_04_27_44_9875.jpg', 2), ('/home/nano/Desktop/images/06042025/04/27/image_06042025_04_27_34_9853.jpg', 2), ('/home/nano/Desktop/images/06042025/04/27/image_06042025_04_27_24_10792.jpg', 2), ('/home/nano/Desktop/images/06042025/04/27/image_06042025_04_27_13_9807.jpg', 2), ('/home/nano/Desktop/images/06042025/04/26/image_06042025_04_27_03_9655.jpg', 2), ('/home/nano/Desktop/images/06042025/04/26/image_06042025_04_26_54_9653.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fad990c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fad990c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fad990c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 04:30:32.484039
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/04/30/image_06042025_04_30_43_9658.jpg', 2), ('/home/nano/Desktop/images/06042025/04/30/image_06042025_04_30_34_9658.jpg', 2), ('/home/nano/Desktop/images/06042025/04/30/image_06042025_04_30_24_10657.jpg', 2), ('/home/nano/Desktop/images/06042025/04/30/image_06042025_04_30_13_9664.jpg', 2), ('/home/nano/Desktop/images/06042025/04/29/image_06042025_04_30_04_9654.jpg', 2), ('/home/nano/Desktop/images/06042025/04/29/image_06042025_04_29_54_10656.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f97f26c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f97f26c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f97f26c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 04:33:02.341339
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/04/32/image_06042025_04_32_14_10676.jpg', 2), ('/home/nano/Desktop/images/06042025/04/31/image_06042025_04_32_03_9651.jpg', 2), ('/home/nano/Desktop/images/06042025/04/31/image_06042025_04_31_54_9645.jpg', 2), ('/home/nano/Desktop/images/06042025/04/31/image_06042025_04_31_44_10652.jpg', 2), ('/home/nano/Desktop/images/06042025/04/31/image_06042025_04_31_24_10656.jpg', 2), ('/home/nano/Desktop/images/06042025/04/31/image_06042025_04_31_13_9668.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa9501ba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa9501ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa9501ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 04:35:32.068694
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/04/35/image_06042025_04_35_44_10653.jpg', 2), ('/home/nano/Desktop/images/06042025/04/35/image_06042025_04_35_33_9644.jpg', 2), ('/home/nano/Desktop/images/06042025/04/35/image_06042025_04_35_24_9644.jpg', 2), ('/home/nano/Desktop/images/06042025/04/35/image_06042025_04_35_14_10692.jpg', 2), ('/home/nano/Desktop/images/06042025/04/34/image_06042025_04_35_03_9654.jpg', 2), ('/home/nano/Desktop/images/06042025/04/34/image_06042025_04_34_54_9662.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f7c80fc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7c80fc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7c80fc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 04:38:02.643803
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/04/37/image_06042025_04_37_44_9788.jpg', 2), ('/home/nano/Desktop/images/06042025/04/37/image_06042025_04_37_34_9785.jpg', 2), ('/home/nano/Desktop/images/06042025/04/37/image_06042025_04_37_24_9802.jpg', 2), ('/home/nano/Desktop/images/06042025/04/37/image_06042025_04_37_14_10814.jpg', 2), ('/home/nano/Desktop/images/06042025/04/36/image_06042025_04_37_03_9821.jpg', 2), ('/home/nano/Desktop/images/06042025/04/36/image_06042025_04_36_54_9664.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9a7b5c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9a7b5c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9a7b5c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 04:40:32.597317
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/04/40/image_06042025_04_40_44_9757.jpg', 2), ('/home/nano/Desktop/images/06042025/04/40/image_06042025_04_40_34_10761.jpg', 2), ('/home/nano/Desktop/images/06042025/04/40/image_06042025_04_40_23_9755.jpg', 2), ('/home/nano/Desktop/images/06042025/04/40/image_06042025_04_40_14_9801.jpg', 2), ('/home/nano/Desktop/images/06042025/04/39/image_06042025_04_40_04_9765.jpg', 2), ('/home/nano/Desktop/images/06042025/04/39/image_06042025_04_39_54_10765.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fb606ac18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb606ac18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb606ac18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 04:43:02.334183
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/04/42/image_06042025_04_42_44_10653.jpg', 2), ('/home/nano/Desktop/images/06042025/04/42/image_06042025_04_42_33_9641.jpg', 2), ('/home/nano/Desktop/images/06042025/04/42/image_06042025_04_42_24_10651.jpg', 2), ('/home/nano/Desktop/images/06042025/04/42/image_06042025_04_42_13_9664.jpg', 2), ('/home/nano/Desktop/images/06042025/04/41/image_06042025_04_42_03_9660.jpg', 2), ('/home/nano/Desktop/images/06042025/04/41/image_06042025_04_41_54_10652.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7faae44c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7faae44c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7faae44c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 04:45:32.213136
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/04/45/image_06042025_04_45_34_9648.jpg', 2), ('/home/nano/Desktop/images/06042025/04/45/image_06042025_04_45_24_10665.jpg', 2), ('/home/nano/Desktop/images/06042025/04/44/image_06042025_04_45_04_9648.jpg', 2), ('/home/nano/Desktop/images/06042025/04/44/image_06042025_04_44_43_9644.jpg', 2), ('/home/nano/Desktop/images/06042025/04/44/image_06042025_04_44_34_9660.jpg', 2), ('/home/nano/Desktop/images/06042025/04/44/image_06042025_04_44_24_10654.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8c1f4ba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8c1f4ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8c1f4ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 04:48:02.428809
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/04/47/image_06042025_04_47_24_10654.jpg', 2), ('/home/nano/Desktop/images/06042025/04/47/image_06042025_04_47_13_9667.jpg', 2), ('/home/nano/Desktop/images/06042025/04/46/image_06042025_04_46_34_9645.jpg', 2), ('/home/nano/Desktop/images/06042025/04/46/image_06042025_04_46_24_10654.jpg', 2), ('/home/nano/Desktop/images/06042025/04/46/image_06042025_04_46_13_9660.jpg', 2), ('/home/nano/Desktop/images/06042025/04/45/image_06042025_04_46_04_9676.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa099bc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa099bc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa099bc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 04:50:32.249973
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/04/50/image_06042025_04_50_44_10671.jpg', 2), ('/home/nano/Desktop/images/06042025/04/50/image_06042025_04_50_33_9659.jpg', 2), ('/home/nano/Desktop/images/06042025/04/50/image_06042025_04_50_24_9678.jpg', 2), ('/home/nano/Desktop/images/06042025/04/50/image_06042025_04_50_14_10683.jpg', 2), ('/home/nano/Desktop/images/06042025/04/49/image_06042025_04_50_03_9781.jpg', 2), ('/home/nano/Desktop/images/06042025/04/49/image_06042025_04_49_54_9776.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa7485ba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa7485ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa7485ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 04:53:02.965297
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/04/52/image_06042025_04_52_44_10791.jpg', 2), ('/home/nano/Desktop/images/06042025/04/52/image_06042025_04_52_33_9780.jpg', 2), ('/home/nano/Desktop/images/06042025/04/52/image_06042025_04_52_24_9799.jpg', 2), ('/home/nano/Desktop/images/06042025/04/52/image_06042025_04_52_14_9805.jpg', 2), ('/home/nano/Desktop/images/06042025/04/51/image_06042025_04_52_04_9779.jpg', 2), ('/home/nano/Desktop/images/06042025/04/51/image_06042025_04_51_54_10787.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9ea2fc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9ea2fc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9ea2fc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 04:55:31.779301
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/04/55/image_06042025_04_55_43_9640.jpg', 2), ('/home/nano/Desktop/images/06042025/04/55/image_06042025_04_55_34_9640.jpg', 2), ('/home/nano/Desktop/images/06042025/04/55/image_06042025_04_55_13_9674.jpg', 2), ('/home/nano/Desktop/images/06042025/04/54/image_06042025_04_54_43_9640.jpg', 2), ('/home/nano/Desktop/images/06042025/04/54/image_06042025_04_54_34_9646.jpg', 2), ('/home/nano/Desktop/images/06042025/04/54/image_06042025_04_54_24_10831.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7faa5cbc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7faa5cbc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7faa5cbc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 04:59:02.450603
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/04/57/image_06042025_04_57_44_10650.jpg', 2), ('/home/nano/Desktop/images/06042025/04/57/image_06042025_04_57_33_9640.jpg', 2), ('/home/nano/Desktop/images/06042025/04/57/image_06042025_04_57_24_9639.jpg', 2), ('/home/nano/Desktop/images/06042025/04/57/image_06042025_04_57_14_10671.jpg', 2), ('/home/nano/Desktop/images/06042025/04/56/image_06042025_04_56_54_9640.jpg', 2), ('/home/nano/Desktop/images/06042025/04/56/image_06042025_04_56_44_10650.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fae441c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fae441c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fae441c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 05:01:31.966376
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/05/01/image_06042025_05_01_34_10667.jpg', 2), ('/home/nano/Desktop/images/06042025/05/01/image_06042025_05_01_23_9668.jpg', 2), ('/home/nano/Desktop/images/06042025/05/01/image_06042025_05_01_14_9661.jpg', 2), ('/home/nano/Desktop/images/06042025/05/00/image_06042025_05_01_04_10663.jpg', 2), ('/home/nano/Desktop/images/06042025/05/00/image_06042025_05_00_53_9640.jpg', 2), ('/home/nano/Desktop/images/06042025/05/00/image_06042025_05_00_44_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9947ac18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9947ac18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9947ac18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 05:04:02.927616
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/05/03/image_06042025_05_03_44_9646.jpg', 2), ('/home/nano/Desktop/images/06042025/05/03/image_06042025_05_03_34_10660.jpg', 2), ('/home/nano/Desktop/images/06042025/05/02/image_06042025_05_02_44_9647.jpg', 2), ('/home/nano/Desktop/images/06042025/05/02/image_06042025_05_02_34_10656.jpg', 2), ('/home/nano/Desktop/images/06042025/05/02/image_06042025_05_02_23_9653.jpg', 2), ('/home/nano/Desktop/images/06042025/05/01/image_06042025_05_01_44_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9881ec18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9881ec18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9881ec18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 05:06:32.489281
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/05/06/image_06042025_05_06_44_9647.jpg', 2), ('/home/nano/Desktop/images/06042025/05/06/image_06042025_05_06_34_10763.jpg', 2), ('/home/nano/Desktop/images/06042025/05/06/image_06042025_05_06_23_9757.jpg', 2), ('/home/nano/Desktop/images/06042025/05/06/image_06042025_05_06_13_9782.jpg', 2), ('/home/nano/Desktop/images/06042025/05/05/image_06042025_05_06_04_9648.jpg', 2), ('/home/nano/Desktop/images/06042025/05/05/image_06042025_05_05_54_10653.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f98a97c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f98a97c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f98a97c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 05:09:02.689934
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/05/08/image_06042025_05_08_34_10666.jpg', 2), ('/home/nano/Desktop/images/06042025/05/08/image_06042025_05_08_14_9675.jpg', 2), ('/home/nano/Desktop/images/06042025/05/07/image_06042025_05_08_04_10654.jpg', 2), ('/home/nano/Desktop/images/06042025/05/07/image_06042025_05_07_34_10674.jpg', 2), ('/home/nano/Desktop/images/06042025/05/07/image_06042025_05_07_23_9643.jpg', 2), ('/home/nano/Desktop/images/06042025/05/07/image_06042025_05_07_14_9663.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa4da5c50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa4da5c50>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa4da5c50>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 05:11:32.024123
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/05/11/image_06042025_05_11_44_9642.jpg', 2), ('/home/nano/Desktop/images/06042025/05/11/image_06042025_05_11_34_10652.jpg', 2), ('/home/nano/Desktop/images/06042025/05/11/image_06042025_05_11_23_9645.jpg', 2), ('/home/nano/Desktop/images/06042025/05/11/image_06042025_05_11_14_9664.jpg', 2), ('/home/nano/Desktop/images/06042025/05/10/image_06042025_05_11_04_10661.jpg', 2), ('/home/nano/Desktop/images/06042025/05/10/image_06042025_05_10_53_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fae575c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fae575c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fae575c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 05:14:03.013854
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/05/13/image_06042025_05_13_34_10655.jpg', 2), ('/home/nano/Desktop/images/06042025/05/13/image_06042025_05_13_23_9645.jpg', 2), ('/home/nano/Desktop/images/06042025/05/13/image_06042025_05_13_14_9661.jpg', 2), ('/home/nano/Desktop/images/06042025/05/12/image_06042025_05_12_53_9652.jpg', 2), ('/home/nano/Desktop/images/06042025/05/12/image_06042025_05_12_44_9654.jpg', 2), ('/home/nano/Desktop/images/06042025/05/11/image_06042025_05_12_04_10665.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8da55c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8da55c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8da55c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 05:16:32.674224
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/05/16/image_06042025_05_16_43_9645.jpg', 2), ('/home/nano/Desktop/images/06042025/05/16/image_06042025_05_16_34_9650.jpg', 2), ('/home/nano/Desktop/images/06042025/05/16/image_06042025_05_16_24_10657.jpg', 2), ('/home/nano/Desktop/images/06042025/05/16/image_06042025_05_16_13_9665.jpg', 2), ('/home/nano/Desktop/images/06042025/05/15/image_06042025_05_16_04_9650.jpg', 2), ('/home/nano/Desktop/images/06042025/05/15/image_06042025_05_15_54_10660.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa73c8c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa73c8c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa73c8c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 05:19:02.875361
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/05/18/image_06042025_05_18_44_9790.jpg', 2), ('/home/nano/Desktop/images/06042025/05/18/image_06042025_05_18_34_10779.jpg', 2), ('/home/nano/Desktop/images/06042025/05/18/image_06042025_05_18_23_9774.jpg', 2), ('/home/nano/Desktop/images/06042025/05/18/image_06042025_05_18_13_9802.jpg', 2), ('/home/nano/Desktop/images/06042025/05/17/image_06042025_05_18_04_9656.jpg', 2), ('/home/nano/Desktop/images/06042025/05/17/image_06042025_05_17_54_10654.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9e09fc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9e09fc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9e09fc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 05:21:32.184504
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/05/21/image_06042025_05_21_34_9768.jpg', 2), ('/home/nano/Desktop/images/06042025/05/21/image_06042025_05_21_24_9769.jpg', 2), ('/home/nano/Desktop/images/06042025/05/21/image_06042025_05_21_14_10800.jpg', 2), ('/home/nano/Desktop/images/06042025/05/20/image_06042025_05_21_03_9740.jpg', 2), ('/home/nano/Desktop/images/06042025/05/20/image_06042025_05_20_54_9647.jpg', 2), ('/home/nano/Desktop/images/06042025/05/20/image_06042025_05_20_44_10656.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f89f43c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f89f43c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f89f43c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 05:24:03.094723
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/05/23/image_06042025_05_23_44_9785.jpg', 2), ('/home/nano/Desktop/images/06042025/05/23/image_06042025_05_23_34_10794.jpg', 2), ('/home/nano/Desktop/images/06042025/05/23/image_06042025_05_23_23_9806.jpg', 2), ('/home/nano/Desktop/images/06042025/05/23/image_06042025_05_23_14_9832.jpg', 2), ('/home/nano/Desktop/images/06042025/05/22/image_06042025_05_23_04_9792.jpg', 2), ('/home/nano/Desktop/images/06042025/05/22/image_06042025_05_22_54_9783.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9f571c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9f571c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9f571c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 05:26:32.705577
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/05/26/image_06042025_05_26_34_10655.jpg', 2), ('/home/nano/Desktop/images/06042025/05/26/image_06042025_05_26_23_9643.jpg', 2), ('/home/nano/Desktop/images/06042025/05/26/image_06042025_05_26_14_9670.jpg', 2), ('/home/nano/Desktop/images/06042025/05/25/image_06042025_05_26_04_10679.jpg', 2), ('/home/nano/Desktop/images/06042025/05/25/image_06042025_05_25_53_9797.jpg', 2), ('/home/nano/Desktop/images/06042025/05/25/image_06042025_05_25_44_9794.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8b608c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8b608c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8b608c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 05:29:02.898393
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/05/28/image_06042025_05_28_24_10653.jpg', 2), ('/home/nano/Desktop/images/06042025/05/28/image_06042025_05_28_14_9665.jpg', 2), ('/home/nano/Desktop/images/06042025/05/27/image_06042025_05_28_04_10657.jpg', 2), ('/home/nano/Desktop/images/06042025/05/27/image_06042025_05_27_53_9643.jpg', 2), ('/home/nano/Desktop/images/06042025/05/27/image_06042025_05_27_44_9646.jpg', 2), ('/home/nano/Desktop/images/06042025/05/27/image_06042025_05_27_34_10657.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7faeceeba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7faeceeba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7faeceeba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 05:31:32.262824
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/05/31/image_06042025_05_31_43_9657.jpg', 2), ('/home/nano/Desktop/images/06042025/05/31/image_06042025_05_31_34_9656.jpg', 2), ('/home/nano/Desktop/images/06042025/05/31/image_06042025_05_31_24_10665.jpg', 2), ('/home/nano/Desktop/images/06042025/05/31/image_06042025_05_31_13_9677.jpg', 2), ('/home/nano/Desktop/images/06042025/05/30/image_06042025_05_31_04_9663.jpg', 2), ('/home/nano/Desktop/images/06042025/05/30/image_06042025_05_30_54_10663.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fadf00c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fadf00c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fadf00c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 05:34:03.216012
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/05/33/image_06042025_05_33_43_9656.jpg', 2), ('/home/nano/Desktop/images/06042025/05/33/image_06042025_05_33_34_9657.jpg', 2), ('/home/nano/Desktop/images/06042025/05/33/image_06042025_05_33_24_10667.jpg', 2), ('/home/nano/Desktop/images/06042025/05/33/image_06042025_05_33_13_9672.jpg', 2), ('/home/nano/Desktop/images/06042025/05/32/image_06042025_05_33_04_9681.jpg', 2), ('/home/nano/Desktop/images/06042025/05/32/image_06042025_05_32_54_10667.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8b9fac18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8b9fac18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8b9fac18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 05:36:32.715838
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/05/36/image_06042025_05_36_43_9648.jpg', 2), ('/home/nano/Desktop/images/06042025/05/36/image_06042025_05_36_24_10657.jpg', 2), ('/home/nano/Desktop/images/06042025/05/36/image_06042025_05_36_13_9663.jpg', 2), ('/home/nano/Desktop/images/06042025/05/35/image_06042025_05_36_04_9666.jpg', 2), ('/home/nano/Desktop/images/06042025/05/35/image_06042025_05_35_54_10659.jpg', 2), ('/home/nano/Desktop/images/06042025/05/35/image_06042025_05_35_43_9655.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa8f95c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa8f95c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa8f95c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 05:39:02.921852
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/05/38/image_06042025_05_38_43_9649.jpg', 2), ('/home/nano/Desktop/images/06042025/05/38/image_06042025_05_38_34_9649.jpg', 2), ('/home/nano/Desktop/images/06042025/05/38/image_06042025_05_38_24_10658.jpg', 2), ('/home/nano/Desktop/images/06042025/05/37/image_06042025_05_38_04_9649.jpg', 2), ('/home/nano/Desktop/images/06042025/05/37/image_06042025_05_37_54_10660.jpg', 2), ('/home/nano/Desktop/images/06042025/05/37/image_06042025_05_37_43_9648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f95823c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f95823c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f95823c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 05:41:32.276089
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/05/41/image_06042025_05_41_44_10657.jpg', 2), ('/home/nano/Desktop/images/06042025/05/41/image_06042025_05_41_33_9645.jpg', 2), ('/home/nano/Desktop/images/06042025/05/41/image_06042025_05_41_14_10679.jpg', 2), ('/home/nano/Desktop/images/06042025/05/40/image_06042025_05_40_44_10660.jpg', 2), ('/home/nano/Desktop/images/06042025/05/40/image_06042025_05_40_33_9648.jpg', 2), ('/home/nano/Desktop/images/06042025/05/40/image_06042025_05_40_24_9648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f93182c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f93182c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f93182c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 05:44:03.254541
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/05/43/image_06042025_05_43_44_10657.jpg', 2), ('/home/nano/Desktop/images/06042025/05/43/image_06042025_05_43_33_9647.jpg', 2), ('/home/nano/Desktop/images/06042025/05/43/image_06042025_05_43_24_9648.jpg', 2), ('/home/nano/Desktop/images/06042025/05/42/image_06042025_05_43_03_9657.jpg', 2), ('/home/nano/Desktop/images/06042025/05/42/image_06042025_05_42_44_10660.jpg', 2), ('/home/nano/Desktop/images/06042025/05/42/image_06042025_05_42_33_9651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8882dc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8882dc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8882dc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 05:46:32.248745
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/05/46/image_06042025_05_46_34_10668.jpg', 2), ('/home/nano/Desktop/images/06042025/05/46/image_06042025_05_46_14_9660.jpg', 2), ('/home/nano/Desktop/images/06042025/05/45/image_06042025_05_46_04_10663.jpg', 2), ('/home/nano/Desktop/images/06042025/05/45/image_06042025_05_45_53_9641.jpg', 2), ('/home/nano/Desktop/images/06042025/05/45/image_06042025_05_45_44_9641.jpg', 2), ('/home/nano/Desktop/images/06042025/05/45/image_06042025_05_45_23_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f7b5edc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7b5edc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7b5edc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 05:49:03.375001
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/05/48/image_06042025_05_48_44_9867.jpg', 2), ('/home/nano/Desktop/images/06042025/05/48/image_06042025_05_48_34_10854.jpg', 2), ('/home/nano/Desktop/images/06042025/05/48/image_06042025_05_48_23_9672.jpg', 2), ('/home/nano/Desktop/images/06042025/05/48/image_06042025_05_48_14_9673.jpg', 2), ('/home/nano/Desktop/images/06042025/05/47/image_06042025_05_48_04_10680.jpg', 2), ('/home/nano/Desktop/images/06042025/05/47/image_06042025_05_47_44_9657.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa61b1ba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa61b1ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa61b1ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 05:51:32.730812
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/05/51/image_06042025_05_51_44_9648.jpg', 2), ('/home/nano/Desktop/images/06042025/05/51/image_06042025_05_51_34_10656.jpg', 2), ('/home/nano/Desktop/images/06042025/05/51/image_06042025_05_51_24_9645.jpg', 2), ('/home/nano/Desktop/images/06042025/05/50/image_06042025_05_51_03_9649.jpg', 2), ('/home/nano/Desktop/images/06042025/05/50/image_06042025_05_50_54_9646.jpg', 2), ('/home/nano/Desktop/images/06042025/05/50/image_06042025_05_50_44_10657.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa9cb7c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa9cb7c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa9cb7c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 05:54:02.475374
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/05/53/image_06042025_05_53_44_10803.jpg', 2), ('/home/nano/Desktop/images/06042025/05/53/image_06042025_05_53_33_9809.jpg', 2), ('/home/nano/Desktop/images/06042025/05/53/image_06042025_05_53_23_9801.jpg', 2), ('/home/nano/Desktop/images/06042025/05/53/image_06042025_05_53_14_9814.jpg', 2), ('/home/nano/Desktop/images/06042025/05/52/image_06042025_05_53_04_9812.jpg', 2), ('/home/nano/Desktop/images/06042025/05/52/image_06042025_05_52_54_10797.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f808c2c50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f808c2c50>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f808c2c50>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 05:56:32.187796
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 05:58:02.702265
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/05/57/image_06042025_05_57_44_9644.jpg', 2), ('/home/nano/Desktop/images/06042025/05/57/image_06042025_05_57_34_10651.jpg', 2), ('/home/nano/Desktop/images/06042025/05/57/image_06042025_05_57_23_9700.jpg', 2), ('/home/nano/Desktop/images/06042025/05/57/image_06042025_05_57_14_9663.jpg', 2), ('/home/nano/Desktop/images/06042025/05/56/image_06042025_05_57_04_10668.jpg', 2), ('/home/nano/Desktop/images/06042025/05/56/image_06042025_05_56_53_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f7b36fba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7b36fba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7b36fba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 06:00:32.219111
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/06/00/image_06042025_06_00_44_10655.jpg', 2), ('/home/nano/Desktop/images/06042025/06/00/image_06042025_06_00_33_9645.jpg', 2), ('/home/nano/Desktop/images/06042025/06/00/image_06042025_06_00_24_9643.jpg', 2), ('/home/nano/Desktop/images/06042025/06/00/image_06042025_06_00_14_10678.jpg', 2), ('/home/nano/Desktop/images/06042025/05/59/image_06042025_06_00_03_9789.jpg', 2), ('/home/nano/Desktop/images/06042025/05/59/image_06042025_05_59_53_9783.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa0ee0c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa0ee0c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa0ee0c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 06:03:02.868021
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/06/02/image_06042025_06_02_44_9644.jpg', 2), ('/home/nano/Desktop/images/06042025/06/02/image_06042025_06_02_34_10652.jpg', 2), ('/home/nano/Desktop/images/06042025/06/01/image_06042025_06_02_04_10689.jpg', 2), ('/home/nano/Desktop/images/06042025/06/01/image_06042025_06_01_53_9659.jpg', 2), ('/home/nano/Desktop/images/06042025/06/01/image_06042025_06_01_44_9661.jpg', 2), ('/home/nano/Desktop/images/06042025/06/01/image_06042025_06_01_23_9660.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fb04e5c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb04e5c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb04e5c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 06:05:32.745822
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/06/05/image_06042025_06_05_43_9643.jpg', 2), ('/home/nano/Desktop/images/06042025/06/05/image_06042025_06_05_34_10650.jpg', 2), ('/home/nano/Desktop/images/06042025/06/05/image_06042025_06_05_23_9642.jpg', 2), ('/home/nano/Desktop/images/06042025/06/05/image_06042025_06_05_14_9661.jpg', 2), ('/home/nano/Desktop/images/06042025/06/04/image_06042025_06_05_04_10655.jpg', 2), ('/home/nano/Desktop/images/06042025/06/04/image_06042025_06_04_53_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8b32cc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8b32cc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8b32cc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 06:08:02.326070
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/06/07/image_06042025_06_07_43_9660.jpg', 2), ('/home/nano/Desktop/images/06042025/06/07/image_06042025_06_07_34_9652.jpg', 2), ('/home/nano/Desktop/images/06042025/06/07/image_06042025_06_07_24_10668.jpg', 2), ('/home/nano/Desktop/images/06042025/06/07/image_06042025_06_07_13_9677.jpg', 2), ('/home/nano/Desktop/images/06042025/06/06/image_06042025_06_07_04_9658.jpg', 2), ('/home/nano/Desktop/images/06042025/06/06/image_06042025_06_06_54_10651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fafe83c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fafe83c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fafe83c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 06:10:32.228238
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/06/10/image_06042025_06_10_44_10656.jpg', 2), ('/home/nano/Desktop/images/06042025/06/10/image_06042025_06_10_33_9643.jpg', 2), ('/home/nano/Desktop/images/06042025/06/10/image_06042025_06_10_24_10652.jpg', 2), ('/home/nano/Desktop/images/06042025/06/10/image_06042025_06_10_13_9661.jpg', 2), ('/home/nano/Desktop/images/06042025/06/09/image_06042025_06_10_04_9650.jpg', 2), ('/home/nano/Desktop/images/06042025/06/09/image_06042025_06_09_54_10673.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9df94c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9df94c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9df94c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 06:13:02.991277
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/06/12/image_06042025_06_12_44_10653.jpg', 2), ('/home/nano/Desktop/images/06042025/06/12/image_06042025_06_12_33_9644.jpg', 2), ('/home/nano/Desktop/images/06042025/06/12/image_06042025_06_12_24_9645.jpg', 2), ('/home/nano/Desktop/images/06042025/06/12/image_06042025_06_12_14_10672.jpg', 2), ('/home/nano/Desktop/images/06042025/06/11/image_06042025_06_12_03_9647.jpg', 2), ('/home/nano/Desktop/images/06042025/06/11/image_06042025_06_11_33_9646.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f81d63c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f81d63c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f81d63c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 06:15:31.771795
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/06/15/image_06042025_06_15_44_9645.jpg', 2), ('/home/nano/Desktop/images/06042025/06/15/image_06042025_06_15_34_10673.jpg', 2), ('/home/nano/Desktop/images/06042025/06/15/image_06042025_06_15_23_9647.jpg', 2), ('/home/nano/Desktop/images/06042025/06/15/image_06042025_06_15_14_10681.jpg', 2), ('/home/nano/Desktop/images/06042025/06/14/image_06042025_06_15_03_9652.jpg', 2), ('/home/nano/Desktop/images/06042025/06/14/image_06042025_06_14_54_9645.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9bbcac18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9bbcac18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9bbcac18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 06:18:02.460920
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/06/17/image_06042025_06_17_44_10815.jpg', 2), ('/home/nano/Desktop/images/06042025/06/17/image_06042025_06_17_33_9803.jpg', 2), ('/home/nano/Desktop/images/06042025/06/17/image_06042025_06_17_23_9642.jpg', 2), ('/home/nano/Desktop/images/06042025/06/17/image_06042025_06_17_14_9664.jpg', 2), ('/home/nano/Desktop/images/06042025/06/16/image_06042025_06_16_53_9663.jpg', 2), ('/home/nano/Desktop/images/06042025/06/16/image_06042025_06_16_44_9662.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f887e1c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f887e1c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f887e1c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 06:20:32.252175
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/06/20/image_06042025_06_20_44_9647.jpg', 2), ('/home/nano/Desktop/images/06042025/06/20/image_06042025_06_20_34_10676.jpg', 2), ('/home/nano/Desktop/images/06042025/06/20/image_06042025_06_20_23_9647.jpg', 2), ('/home/nano/Desktop/images/06042025/06/20/image_06042025_06_20_14_9661.jpg', 2), ('/home/nano/Desktop/images/06042025/06/19/image_06042025_06_20_04_10667.jpg', 2), ('/home/nano/Desktop/images/06042025/06/19/image_06042025_06_19_53_9637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9a062c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9a062c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9a062c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 06:23:02.936562
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/06/22/image_06042025_06_22_44_9650.jpg', 2), ('/home/nano/Desktop/images/06042025/06/22/image_06042025_06_22_23_9649.jpg', 2), ('/home/nano/Desktop/images/06042025/06/22/image_06042025_06_22_14_9682.jpg', 2), ('/home/nano/Desktop/images/06042025/06/21/image_06042025_06_22_04_10656.jpg', 2), ('/home/nano/Desktop/images/06042025/06/21/image_06042025_06_21_53_9644.jpg', 2), ('/home/nano/Desktop/images/06042025/06/21/image_06042025_06_21_44_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa4887c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa4887c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa4887c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 06:25:32.723669
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/06/25/image_06042025_06_25_44_10867.jpg', 2), ('/home/nano/Desktop/images/06042025/06/25/image_06042025_06_25_33_9859.jpg', 2), ('/home/nano/Desktop/images/06042025/06/25/image_06042025_06_25_23_9859.jpg', 2), ('/home/nano/Desktop/images/06042025/06/25/image_06042025_06_25_13_9881.jpg', 2), ('/home/nano/Desktop/images/06042025/06/24/image_06042025_06_25_04_9870.jpg', 2), ('/home/nano/Desktop/images/06042025/06/24/image_06042025_06_24_54_9859.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa9885c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa9885c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa9885c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 06:28:02.373106
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/06/27/image_06042025_06_27_43_9856.jpg', 2), ('/home/nano/Desktop/images/06042025/06/27/image_06042025_06_27_34_9857.jpg', 2), ('/home/nano/Desktop/images/06042025/06/27/image_06042025_06_27_24_9857.jpg', 2), ('/home/nano/Desktop/images/06042025/06/27/image_06042025_06_27_14_9888.jpg', 2), ('/home/nano/Desktop/images/06042025/06/26/image_06042025_06_27_04_9882.jpg', 2), ('/home/nano/Desktop/images/06042025/06/26/image_06042025_06_26_54_10869.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8b9e4c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8b9e4c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8b9e4c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 06:30:32.242855
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/06/30/image_06042025_06_30_34_9635.jpg', 2), ('/home/nano/Desktop/images/06042025/06/30/image_06042025_06_30_24_10646.jpg', 2), ('/home/nano/Desktop/images/06042025/06/30/image_06042025_06_30_13_9654.jpg', 2), ('/home/nano/Desktop/images/06042025/06/29/image_06042025_06_30_04_9636.jpg', 2), ('/home/nano/Desktop/images/06042025/06/29/image_06042025_06_29_54_10645.jpg', 2), ('/home/nano/Desktop/images/06042025/06/29/image_06042025_06_29_43_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa8385ba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa8385ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa8385ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 06:33:03.008699
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/06/32/image_06042025_06_32_44_10660.jpg', 2), ('/home/nano/Desktop/images/06042025/06/32/image_06042025_06_32_33_9649.jpg', 2), ('/home/nano/Desktop/images/06042025/06/32/image_06042025_06_32_24_9650.jpg', 2), ('/home/nano/Desktop/images/06042025/06/32/image_06042025_06_32_14_10678.jpg', 2), ('/home/nano/Desktop/images/06042025/06/31/image_06042025_06_32_03_9828.jpg', 2), ('/home/nano/Desktop/images/06042025/06/31/image_06042025_06_31_54_9826.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fb1622c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb1622c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb1622c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 06:35:32.722507
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/06/35/image_06042025_06_35_44_10592.jpg', 2), ('/home/nano/Desktop/images/06042025/06/35/image_06042025_06_35_34_9641.jpg', 2), ('/home/nano/Desktop/images/06042025/06/35/image_06042025_06_35_24_10648.jpg', 2), ('/home/nano/Desktop/images/06042025/06/35/image_06042025_06_35_13_9679.jpg', 2), ('/home/nano/Desktop/images/06042025/06/34/image_06042025_06_35_04_9641.jpg', 2), ('/home/nano/Desktop/images/06042025/06/34/image_06042025_06_34_54_9809.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8c964ba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8c964ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8c964ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 06:38:02.358382
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/06/37/image_06042025_06_37_44_10579.jpg', 2), ('/home/nano/Desktop/images/06042025/06/37/image_06042025_06_37_13_9600.jpg', 2), ('/home/nano/Desktop/images/06042025/06/36/image_06042025_06_37_04_9573.jpg', 2), ('/home/nano/Desktop/images/06042025/06/36/image_06042025_06_36_44_9564.jpg', 2), ('/home/nano/Desktop/images/06042025/06/36/image_06042025_06_36_23_9568.jpg', 2), ('/home/nano/Desktop/images/06042025/06/36/image_06042025_06_36_14_10593.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9993cc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9993cc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9993cc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 06:40:32.213443
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/06/40/image_06042025_06_40_43_9661.jpg', 2), ('/home/nano/Desktop/images/06042025/06/40/image_06042025_06_40_34_9658.jpg', 2), ('/home/nano/Desktop/images/06042025/06/40/image_06042025_06_40_24_10664.jpg', 2), ('/home/nano/Desktop/images/06042025/06/40/image_06042025_06_40_13_9672.jpg', 2), ('/home/nano/Desktop/images/06042025/06/39/image_06042025_06_40_04_9666.jpg', 2), ('/home/nano/Desktop/images/06042025/06/39/image_06042025_06_39_54_10664.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f99e8ac18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f99e8ac18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f99e8ac18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 06:43:02.965912
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/06/42/image_06042025_06_42_34_9649.jpg', 2), ('/home/nano/Desktop/images/06042025/06/42/image_06042025_06_42_24_10657.jpg', 2), ('/home/nano/Desktop/images/06042025/06/42/image_06042025_06_42_13_9667.jpg', 2), ('/home/nano/Desktop/images/06042025/06/41/image_06042025_06_42_04_9651.jpg', 2), ('/home/nano/Desktop/images/06042025/06/41/image_06042025_06_41_54_10658.jpg', 2), ('/home/nano/Desktop/images/06042025/06/41/image_06042025_06_41_43_9648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8d5c3c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8d5c3c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8d5c3c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 06:45:31.781587
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/06/45/image_06042025_06_45_44_10641.jpg', 2), ('/home/nano/Desktop/images/06042025/06/45/image_06042025_06_45_33_9634.jpg', 2), ('/home/nano/Desktop/images/06042025/06/44/image_06042025_06_45_04_9651.jpg', 2), ('/home/nano/Desktop/images/06042025/06/44/image_06042025_06_44_54_10645.jpg', 2), ('/home/nano/Desktop/images/06042025/06/44/image_06042025_06_44_43_9634.jpg', 2), ('/home/nano/Desktop/images/06042025/06/44/image_06042025_06_44_34_9635.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fab1edc50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fab1edc50>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fab1edc50>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 06:48:02.008227
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/06/47/image_06042025_06_47_24_9631.jpg', 2), ('/home/nano/Desktop/images/06042025/06/47/image_06042025_06_47_14_10662.jpg', 2), ('/home/nano/Desktop/images/06042025/06/46/image_06042025_06_46_54_9634.jpg', 2), ('/home/nano/Desktop/images/06042025/06/46/image_06042025_06_46_44_10644.jpg', 2), ('/home/nano/Desktop/images/06042025/06/46/image_06042025_06_46_33_9635.jpg', 2), ('/home/nano/Desktop/images/06042025/06/46/image_06042025_06_46_24_9634.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9996dc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9996dc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9996dc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 06:50:31.919599
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/06/50/image_06042025_06_50_44_9779.jpg', 2), ('/home/nano/Desktop/images/06042025/06/50/image_06042025_06_50_34_9778.jpg', 2), ('/home/nano/Desktop/images/06042025/06/50/image_06042025_06_50_24_10788.jpg', 2), ('/home/nano/Desktop/images/06042025/06/50/image_06042025_06_50_13_9803.jpg', 2), ('/home/nano/Desktop/images/06042025/06/49/image_06042025_06_50_03_9788.jpg', 2), ('/home/nano/Desktop/images/06042025/06/49/image_06042025_06_49_54_9800.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f86233ba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f86233ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f86233ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 06:53:02.632806
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/06/52/image_06042025_06_52_43_9811.jpg', 2), ('/home/nano/Desktop/images/06042025/06/52/image_06042025_06_52_34_9813.jpg', 2), ('/home/nano/Desktop/images/06042025/06/52/image_06042025_06_52_24_9811.jpg', 2), ('/home/nano/Desktop/images/06042025/06/52/image_06042025_06_52_14_9830.jpg', 2), ('/home/nano/Desktop/images/06042025/06/51/image_06042025_06_52_04_10826.jpg', 2), ('/home/nano/Desktop/images/06042025/06/51/image_06042025_06_51_43_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fb5b61c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb5b61c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb5b61c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 06:55:32.449881
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/06/55/image_06042025_06_55_44_10817.jpg', 2), ('/home/nano/Desktop/images/06042025/06/55/image_06042025_06_55_33_9815.jpg', 2), ('/home/nano/Desktop/images/06042025/06/55/image_06042025_06_55_23_9821.jpg', 2), ('/home/nano/Desktop/images/06042025/06/55/image_06042025_06_55_14_9576.jpg', 2), ('/home/nano/Desktop/images/06042025/06/54/image_06042025_06_55_04_10590.jpg', 2), ('/home/nano/Desktop/images/06042025/06/54/image_06042025_06_54_54_9569.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9e9eac18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9e9eac18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9e9eac18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 06:59:03.294327
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/06/58/image_06042025_06_58_44_10802.jpg', 2), ('/home/nano/Desktop/images/06042025/06/58/image_06042025_06_58_33_9822.jpg', 2), ('/home/nano/Desktop/images/06042025/06/58/image_06042025_06_58_23_9820.jpg', 2), ('/home/nano/Desktop/images/06042025/06/58/image_06042025_06_58_14_9867.jpg', 2), ('/home/nano/Desktop/images/06042025/06/57/image_06042025_06_58_04_9824.jpg', 2), ('/home/nano/Desktop/images/06042025/06/57/image_06042025_06_57_54_9823.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f81004c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f81004c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f81004c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 07:01:32.726366
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/07/01/image_06042025_07_01_44_9872.jpg', 2), ('/home/nano/Desktop/images/06042025/07/01/image_06042025_07_01_34_9854.jpg', 2), ('/home/nano/Desktop/images/06042025/07/01/image_06042025_07_01_24_9855.jpg', 2), ('/home/nano/Desktop/images/06042025/07/01/image_06042025_07_01_14_10900.jpg', 2), ('/home/nano/Desktop/images/06042025/07/00/image_06042025_07_01_03_9860.jpg', 2), ('/home/nano/Desktop/images/06042025/07/00/image_06042025_07_00_53_9850.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f7d238c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7d238c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7d238c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 07:04:02.608648
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/07/03/image_06042025_07_03_43_9638.jpg', 2), ('/home/nano/Desktop/images/06042025/07/03/image_06042025_07_03_34_9637.jpg', 2), ('/home/nano/Desktop/images/06042025/07/03/image_06042025_07_03_24_10650.jpg', 2), ('/home/nano/Desktop/images/06042025/07/03/image_06042025_07_03_13_9882.jpg', 2), ('/home/nano/Desktop/images/06042025/07/02/image_06042025_07_03_04_9861.jpg', 2), ('/home/nano/Desktop/images/06042025/07/02/image_06042025_07_02_54_9855.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f93b97ba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f93b97ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f93b97ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 07:06:32.279374
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/07/06/image_06042025_07_06_44_10648.jpg', 2), ('/home/nano/Desktop/images/06042025/07/06/image_06042025_07_06_33_9637.jpg', 2), ('/home/nano/Desktop/images/06042025/07/06/image_06042025_07_06_24_9654.jpg', 2), ('/home/nano/Desktop/images/06042025/07/06/image_06042025_07_06_14_10671.jpg', 2), ('/home/nano/Desktop/images/06042025/07/05/image_06042025_07_06_03_9658.jpg', 2), ('/home/nano/Desktop/images/06042025/07/05/image_06042025_07_05_54_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa809dc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa809dc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa809dc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 07:09:03.297173
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/07/08/image_06042025_07_08_44_10657.jpg', 2), ('/home/nano/Desktop/images/06042025/07/08/image_06042025_07_08_14_10680.jpg', 2), ('/home/nano/Desktop/images/06042025/07/07/image_06042025_07_08_03_9651.jpg', 2), ('/home/nano/Desktop/images/06042025/07/07/image_06042025_07_07_54_9647.jpg', 2), ('/home/nano/Desktop/images/06042025/07/07/image_06042025_07_07_44_10655.jpg', 2), ('/home/nano/Desktop/images/06042025/07/07/image_06042025_07_07_24_9648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8ccd8c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8ccd8c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8ccd8c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 07:11:31.781083
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/07/11/image_06042025_07_11_44_9648.jpg', 2), ('/home/nano/Desktop/images/06042025/07/11/image_06042025_07_11_34_10657.jpg', 2), ('/home/nano/Desktop/images/06042025/07/11/image_06042025_07_11_23_9644.jpg', 2), ('/home/nano/Desktop/images/06042025/07/11/image_06042025_07_11_14_9668.jpg', 2), ('/home/nano/Desktop/images/06042025/07/10/image_06042025_07_11_04_10665.jpg', 2), ('/home/nano/Desktop/images/06042025/07/10/image_06042025_07_10_53_9648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f7e6eac18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7e6eac18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7e6eac18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 07:14:02.638251
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/07/13/image_06042025_07_13_44_9647.jpg', 2), ('/home/nano/Desktop/images/06042025/07/13/image_06042025_07_13_34_10659.jpg', 2), ('/home/nano/Desktop/images/06042025/07/13/image_06042025_07_13_23_9668.jpg', 2), ('/home/nano/Desktop/images/06042025/07/12/image_06042025_07_12_23_9645.jpg', 2), ('/home/nano/Desktop/images/06042025/07/12/image_06042025_07_12_14_9703.jpg', 2), ('/home/nano/Desktop/images/06042025/07/11/image_06042025_07_12_04_10662.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa0e66c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa0e66c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa0e66c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 07:16:32.306332
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/07/16/image_06042025_07_16_43_9640.jpg', 2), ('/home/nano/Desktop/images/06042025/07/16/image_06042025_07_16_34_10646.jpg', 2), ('/home/nano/Desktop/images/06042025/07/16/image_06042025_07_16_23_9649.jpg', 2), ('/home/nano/Desktop/images/06042025/07/16/image_06042025_07_16_14_9664.jpg', 2), ('/home/nano/Desktop/images/06042025/07/15/image_06042025_07_16_04_10665.jpg', 2), ('/home/nano/Desktop/images/06042025/07/15/image_06042025_07_15_53_9644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fb044bba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb044bba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb044bba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 07:19:03.437973
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/07/18/image_06042025_07_18_43_9642.jpg', 2), ('/home/nano/Desktop/images/06042025/07/18/image_06042025_07_18_34_9667.jpg', 2), ('/home/nano/Desktop/images/06042025/07/18/image_06042025_07_18_24_10660.jpg', 2), ('/home/nano/Desktop/images/06042025/07/18/image_06042025_07_18_13_9665.jpg', 2), ('/home/nano/Desktop/images/06042025/07/17/image_06042025_07_17_54_10646.jpg', 2), ('/home/nano/Desktop/images/06042025/07/17/image_06042025_07_17_43_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f7f3e6c50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7f3e6c50>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7f3e6c50>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 07:21:31.827879
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/07/21/image_06042025_07_21_44_10653.jpg', 2), ('/home/nano/Desktop/images/06042025/07/21/image_06042025_07_21_33_9639.jpg', 2), ('/home/nano/Desktop/images/06042025/07/21/image_06042025_07_21_24_9645.jpg', 2), ('/home/nano/Desktop/images/06042025/07/21/image_06042025_07_21_14_10669.jpg', 2), ('/home/nano/Desktop/images/06042025/07/20/image_06042025_07_21_03_9643.jpg', 2), ('/home/nano/Desktop/images/06042025/07/20/image_06042025_07_20_44_10656.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9a9dfba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9a9dfba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9a9dfba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 07:24:02.784555
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/07/23/image_06042025_07_23_24_9666.jpg', 2), ('/home/nano/Desktop/images/06042025/07/23/image_06042025_07_23_14_10678.jpg', 2), ('/home/nano/Desktop/images/06042025/07/22/image_06042025_07_23_03_9671.jpg', 2), ('/home/nano/Desktop/images/06042025/07/22/image_06042025_07_22_54_9647.jpg', 2), ('/home/nano/Desktop/images/06042025/07/22/image_06042025_07_22_44_10674.jpg', 2), ('/home/nano/Desktop/images/06042025/07/22/image_06042025_07_22_33_9649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fb1a09c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb1a09c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb1a09c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 07:26:32.297931
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/07/26/image_06042025_07_26_44_9650.jpg', 2), ('/home/nano/Desktop/images/06042025/07/26/image_06042025_07_26_34_10659.jpg', 2), ('/home/nano/Desktop/images/06042025/07/26/image_06042025_07_26_14_10676.jpg', 2), ('/home/nano/Desktop/images/06042025/07/25/image_06042025_07_26_03_9661.jpg', 2), ('/home/nano/Desktop/images/06042025/07/25/image_06042025_07_25_53_9651.jpg', 2), ('/home/nano/Desktop/images/06042025/07/25/image_06042025_07_25_44_10662.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa5b08c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa5b08c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa5b08c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 07:29:03.425298
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/07/28/image_06042025_07_28_44_9645.jpg', 2), ('/home/nano/Desktop/images/06042025/07/28/image_06042025_07_28_34_10655.jpg', 2), ('/home/nano/Desktop/images/06042025/07/28/image_06042025_07_28_23_9643.jpg', 2), ('/home/nano/Desktop/images/06042025/07/28/image_06042025_07_28_14_9664.jpg', 2), ('/home/nano/Desktop/images/06042025/07/27/image_06042025_07_28_04_10664.jpg', 2), ('/home/nano/Desktop/images/06042025/07/27/image_06042025_07_27_53_9642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa97f7c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa97f7c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa97f7c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 07:31:31.794814
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/07/31/image_06042025_07_31_43_9645.jpg', 2), ('/home/nano/Desktop/images/06042025/07/31/image_06042025_07_31_24_10656.jpg', 2), ('/home/nano/Desktop/images/06042025/07/31/image_06042025_07_31_13_9663.jpg', 2), ('/home/nano/Desktop/images/06042025/07/30/image_06042025_07_30_53_9646.jpg', 2), ('/home/nano/Desktop/images/06042025/07/30/image_06042025_07_30_44_9647.jpg', 2), ('/home/nano/Desktop/images/06042025/07/30/image_06042025_07_30_34_10661.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9ae49c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9ae49c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9ae49c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 07:34:02.432642
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/07/33/image_06042025_07_33_44_9824.jpg', 2), ('/home/nano/Desktop/images/06042025/07/33/image_06042025_07_33_34_9679.jpg', 2), ('/home/nano/Desktop/images/06042025/07/33/image_06042025_07_33_24_10657.jpg', 2), ('/home/nano/Desktop/images/06042025/07/33/image_06042025_07_33_13_9669.jpg', 2), ('/home/nano/Desktop/images/06042025/07/32/image_06042025_07_33_04_9663.jpg', 2), ('/home/nano/Desktop/images/06042025/07/32/image_06042025_07_32_54_10658.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f80022c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f80022c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f80022c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 07:36:32.286397
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/07/36/image_06042025_07_36_44_9851.jpg', 2), ('/home/nano/Desktop/images/06042025/07/36/image_06042025_07_36_34_9851.jpg', 2), ('/home/nano/Desktop/images/06042025/07/36/image_06042025_07_36_24_9855.jpg', 2), ('/home/nano/Desktop/images/06042025/07/36/image_06042025_07_36_14_10879.jpg', 2), ('/home/nano/Desktop/images/06042025/07/35/image_06042025_07_36_03_9858.jpg', 2), ('/home/nano/Desktop/images/06042025/07/35/image_06042025_07_35_53_9821.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa4aeac18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa4aeac18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa4aeac18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 07:39:03.260179
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/07/38/image_06042025_07_38_44_9642.jpg', 2), ('/home/nano/Desktop/images/06042025/07/38/image_06042025_07_38_34_10651.jpg', 2), ('/home/nano/Desktop/images/06042025/07/38/image_06042025_07_38_14_9655.jpg', 2), ('/home/nano/Desktop/images/06042025/07/37/image_06042025_07_38_04_10660.jpg', 2), ('/home/nano/Desktop/images/06042025/07/37/image_06042025_07_37_53_9635.jpg', 2), ('/home/nano/Desktop/images/06042025/07/37/image_06042025_07_37_44_9852.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa172ac18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa172ac18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa172ac18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 07:41:31.813819
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/07/41/image_06042025_07_41_43_9648.jpg', 2), ('/home/nano/Desktop/images/06042025/07/41/image_06042025_07_41_34_10651.jpg', 2), ('/home/nano/Desktop/images/06042025/07/41/image_06042025_07_41_14_9668.jpg', 2), ('/home/nano/Desktop/images/06042025/07/40/image_06042025_07_41_04_10669.jpg', 2), ('/home/nano/Desktop/images/06042025/07/40/image_06042025_07_40_53_9647.jpg', 2), ('/home/nano/Desktop/images/06042025/07/40/image_06042025_07_40_44_9647.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa557fc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa557fc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa557fc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 07:44:02.562369
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/07/43/image_06042025_07_43_34_9644.jpg', 2), ('/home/nano/Desktop/images/06042025/07/43/image_06042025_07_43_24_10677.jpg', 2), ('/home/nano/Desktop/images/06042025/07/43/image_06042025_07_43_13_9669.jpg', 2), ('/home/nano/Desktop/images/06042025/07/42/image_06042025_07_43_04_9658.jpg', 2), ('/home/nano/Desktop/images/06042025/07/42/image_06042025_07_42_54_10657.jpg', 2), ('/home/nano/Desktop/images/06042025/07/42/image_06042025_07_42_43_9647.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f78b19c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f78b19c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f78b19c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 07:46:32.253864
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/07/46/image_06042025_07_46_43_9647.jpg', 2), ('/home/nano/Desktop/images/06042025/07/46/image_06042025_07_46_34_9648.jpg', 2), ('/home/nano/Desktop/images/06042025/07/46/image_06042025_07_46_24_10674.jpg', 2), ('/home/nano/Desktop/images/06042025/07/46/image_06042025_07_46_13_9664.jpg', 2), ('/home/nano/Desktop/images/06042025/07/45/image_06042025_07_46_04_9648.jpg', 2), ('/home/nano/Desktop/images/06042025/07/45/image_06042025_07_45_43_9648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f99184c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f99184c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f99184c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 07:49:03.338640
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/07/48/image_06042025_07_48_44_10658.jpg', 2), ('/home/nano/Desktop/images/06042025/07/48/image_06042025_07_48_33_9645.jpg', 2), ('/home/nano/Desktop/images/06042025/07/48/image_06042025_07_48_24_9650.jpg', 2), ('/home/nano/Desktop/images/06042025/07/48/image_06042025_07_48_14_10668.jpg', 2), ('/home/nano/Desktop/images/06042025/07/47/image_06042025_07_48_03_9642.jpg', 2), ('/home/nano/Desktop/images/06042025/07/47/image_06042025_07_47_54_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fada4ac18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fada4ac18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fada4ac18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 07:51:32.723972
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/07/51/image_06042025_07_51_44_10653.jpg', 2), ('/home/nano/Desktop/images/06042025/07/51/image_06042025_07_51_33_9642.jpg', 2), ('/home/nano/Desktop/images/06042025/07/51/image_06042025_07_51_24_9646.jpg', 2), ('/home/nano/Desktop/images/06042025/07/51/image_06042025_07_51_14_10673.jpg', 2), ('/home/nano/Desktop/images/06042025/07/50/image_06042025_07_51_03_9648.jpg', 2), ('/home/nano/Desktop/images/06042025/07/50/image_06042025_07_50_54_9646.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fb3a8fc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb3a8fc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb3a8fc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 07:54:02.564685
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/07/53/image_06042025_07_53_44_9641.jpg', 2), ('/home/nano/Desktop/images/06042025/07/53/image_06042025_07_53_34_10654.jpg', 2), ('/home/nano/Desktop/images/06042025/07/53/image_06042025_07_53_23_9651.jpg', 2), ('/home/nano/Desktop/images/06042025/07/53/image_06042025_07_53_14_9694.jpg', 2), ('/home/nano/Desktop/images/06042025/07/52/image_06042025_07_53_04_10656.jpg', 2), ('/home/nano/Desktop/images/06042025/07/52/image_06042025_07_52_53_9644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa64e1ba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa64e1ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa64e1ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 07:56:32.210734
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 07:59:02.798240
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/07/58/image_06042025_07_58_34_9644.jpg', 2), ('/home/nano/Desktop/images/06042025/07/57/image_06042025_07_57_54_10654.jpg', 2), ('/home/nano/Desktop/images/06042025/07/57/image_06042025_07_57_43_9644.jpg', 2), ('/home/nano/Desktop/images/06042025/07/57/image_06042025_07_57_13_9686.jpg', 2), ('/home/nano/Desktop/images/06042025/07/56/image_06042025_07_57_04_9645.jpg', 2), ('/home/nano/Desktop/images/06042025/07/56/image_06042025_07_56_43_9644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f86ac7c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f86ac7c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f86ac7c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 08:01:32.036613
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/08/01/image_06042025_08_01_43_9645.jpg', 2), ('/home/nano/Desktop/images/06042025/08/01/image_06042025_08_01_34_9644.jpg', 2), ('/home/nano/Desktop/images/06042025/08/01/image_06042025_08_01_24_10653.jpg', 2), ('/home/nano/Desktop/images/06042025/08/01/image_06042025_08_01_13_9659.jpg', 2), ('/home/nano/Desktop/images/06042025/08/00/image_06042025_08_01_04_9647.jpg', 2), ('/home/nano/Desktop/images/06042025/08/00/image_06042025_08_00_54_10652.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7faad19c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7faad19c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7faad19c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 08:04:02.971655
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/08/04/image_06042025_08_04_43_9775.jpg', 2), ('/home/nano/Desktop/images/06042025/08/03/image_06042025_08_03_44_9799.jpg', 2), ('/home/nano/Desktop/images/06042025/08/03/image_06042025_08_03_34_10809.jpg', 2), ('/home/nano/Desktop/images/06042025/08/03/image_06042025_08_03_23_9803.jpg', 2), ('/home/nano/Desktop/images/06042025/08/03/image_06042025_08_03_13_9820.jpg', 2), ('/home/nano/Desktop/images/06042025/08/02/image_06042025_08_03_04_9822.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8d060c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8d060c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8d060c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 08:06:32.611162
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/08/06/image_06042025_08_06_44_9638.jpg', 2), ('/home/nano/Desktop/images/06042025/08/06/image_06042025_08_06_34_10647.jpg', 2), ('/home/nano/Desktop/images/06042025/08/06/image_06042025_08_06_23_9642.jpg', 2), ('/home/nano/Desktop/images/06042025/08/06/image_06042025_08_06_14_9656.jpg', 2), ('/home/nano/Desktop/images/06042025/08/05/image_06042025_08_06_04_10652.jpg', 2), ('/home/nano/Desktop/images/06042025/08/05/image_06042025_08_05_53_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f7885eba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7885eba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7885eba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 08:09:02.601155
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/08/08/image_06042025_08_08_43_9639.jpg', 2), ('/home/nano/Desktop/images/06042025/08/08/image_06042025_08_08_34_10646.jpg', 2), ('/home/nano/Desktop/images/06042025/08/08/image_06042025_08_08_14_9656.jpg', 2), ('/home/nano/Desktop/images/06042025/08/07/image_06042025_08_08_04_10684.jpg', 2), ('/home/nano/Desktop/images/06042025/08/07/image_06042025_08_07_53_9657.jpg', 2), ('/home/nano/Desktop/images/06042025/08/07/image_06042025_08_07_44_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9b95cc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9b95cc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9b95cc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 08:11:32.097176
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/08/11/image_06042025_08_11_43_9781.jpg', 2), ('/home/nano/Desktop/images/06042025/08/11/image_06042025_08_11_34_9781.jpg', 2), ('/home/nano/Desktop/images/06042025/08/11/image_06042025_08_11_24_9781.jpg', 2), ('/home/nano/Desktop/images/06042025/08/11/image_06042025_08_11_14_9803.jpg', 2), ('/home/nano/Desktop/images/06042025/08/10/image_06042025_08_11_04_10801.jpg', 2), ('/home/nano/Desktop/images/06042025/08/10/image_06042025_08_10_53_9780.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f7daeec18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7daeec18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7daeec18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 08:14:03.082912
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/08/13/image_06042025_08_13_54_10646.jpg', 2), ('/home/nano/Desktop/images/06042025/08/13/image_06042025_08_13_34_9636.jpg', 2), ('/home/nano/Desktop/images/06042025/08/13/image_06042025_08_13_24_10660.jpg', 2), ('/home/nano/Desktop/images/06042025/08/13/image_06042025_08_13_13_9651.jpg', 2), ('/home/nano/Desktop/images/06042025/08/12/image_06042025_08_13_04_9638.jpg', 2), ('/home/nano/Desktop/images/06042025/08/12/image_06042025_08_12_54_10664.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f77d3cc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f77d3cc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f77d3cc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 08:16:32.706158
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/08/16/image_06042025_08_16_44_10801.jpg', 2), ('/home/nano/Desktop/images/06042025/08/16/image_06042025_08_16_33_9791.jpg', 2), ('/home/nano/Desktop/images/06042025/08/16/image_06042025_08_16_24_9799.jpg', 2), ('/home/nano/Desktop/images/06042025/08/16/image_06042025_08_16_14_9810.jpg', 2), ('/home/nano/Desktop/images/06042025/08/15/image_06042025_08_16_04_9788.jpg', 2), ('/home/nano/Desktop/images/06042025/08/15/image_06042025_08_15_54_10821.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f83ca2c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f83ca2c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f83ca2c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 08:19:02.823785
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/08/18/image_06042025_08_18_44_9813.jpg', 2), ('/home/nano/Desktop/images/06042025/08/18/image_06042025_08_18_34_10805.jpg', 2), ('/home/nano/Desktop/images/06042025/08/18/image_06042025_08_18_23_9794.jpg', 2), ('/home/nano/Desktop/images/06042025/08/18/image_06042025_08_18_13_9829.jpg', 2), ('/home/nano/Desktop/images/06042025/08/17/image_06042025_08_18_04_9803.jpg', 2), ('/home/nano/Desktop/images/06042025/08/17/image_06042025_08_17_54_9800.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fb6528c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb6528c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb6528c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 08:21:32.268971
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/08/21/image_06042025_08_21_43_9794.jpg', 2), ('/home/nano/Desktop/images/06042025/08/21/image_06042025_08_21_33_9796.jpg', 2), ('/home/nano/Desktop/images/06042025/08/21/image_06042025_08_21_24_9796.jpg', 2), ('/home/nano/Desktop/images/06042025/08/21/image_06042025_08_21_14_9816.jpg', 2), ('/home/nano/Desktop/images/06042025/08/20/image_06042025_08_21_04_10812.jpg', 2), ('/home/nano/Desktop/images/06042025/08/20/image_06042025_08_20_53_9796.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f78c28c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f78c28c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f78c28c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 08:24:03.305756
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/08/23/image_06042025_08_23_44_10652.jpg', 2), ('/home/nano/Desktop/images/06042025/08/23/image_06042025_08_23_33_9662.jpg', 2), ('/home/nano/Desktop/images/06042025/08/23/image_06042025_08_23_14_10669.jpg', 2), ('/home/nano/Desktop/images/06042025/08/22/image_06042025_08_23_03_9650.jpg', 2), ('/home/nano/Desktop/images/06042025/08/22/image_06042025_08_22_43_9644.jpg', 2), ('/home/nano/Desktop/images/06042025/08/22/image_06042025_08_22_34_9647.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa6fbdc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa6fbdc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa6fbdc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 08:26:31.804406
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/08/26/image_06042025_08_26_44_10647.jpg', 2), ('/home/nano/Desktop/images/06042025/08/26/image_06042025_08_26_33_9640.jpg', 2), ('/home/nano/Desktop/images/06042025/08/26/image_06042025_08_26_24_9639.jpg', 2), ('/home/nano/Desktop/images/06042025/08/26/image_06042025_08_26_14_10663.jpg', 2), ('/home/nano/Desktop/images/06042025/08/25/image_06042025_08_26_03_9655.jpg', 2), ('/home/nano/Desktop/images/06042025/08/25/image_06042025_08_25_54_9657.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fae561c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fae561c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fae561c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 08:29:02.784675
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/08/28/image_06042025_08_28_44_9650.jpg', 2), ('/home/nano/Desktop/images/06042025/08/28/image_06042025_08_28_34_10650.jpg', 2), ('/home/nano/Desktop/images/06042025/08/28/image_06042025_08_28_14_9667.jpg', 2), ('/home/nano/Desktop/images/06042025/08/27/image_06042025_08_28_04_10660.jpg', 2), ('/home/nano/Desktop/images/06042025/08/27/image_06042025_08_27_53_9639.jpg', 2), ('/home/nano/Desktop/images/06042025/08/27/image_06042025_08_27_44_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fb036cba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb036cba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb036cba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 08:31:32.264102
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/08/31/image_06042025_08_31_43_9781.jpg', 2), ('/home/nano/Desktop/images/06042025/08/31/image_06042025_08_31_33_9760.jpg', 2), ('/home/nano/Desktop/images/06042025/08/31/image_06042025_08_31_24_9760.jpg', 2), ('/home/nano/Desktop/images/06042025/08/31/image_06042025_08_31_14_9784.jpg', 2), ('/home/nano/Desktop/images/06042025/08/30/image_06042025_08_31_04_10779.jpg', 2), ('/home/nano/Desktop/images/06042025/08/30/image_06042025_08_30_53_9759.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa857bc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa857bc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa857bc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 08:34:03.224954
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/08/33/image_06042025_08_33_43_9759.jpg', 2), ('/home/nano/Desktop/images/06042025/08/33/image_06042025_08_33_34_9759.jpg', 2), ('/home/nano/Desktop/images/06042025/08/33/image_06042025_08_33_24_9760.jpg', 2), ('/home/nano/Desktop/images/06042025/08/33/image_06042025_08_33_14_10787.jpg', 2), ('/home/nano/Desktop/images/06042025/08/32/image_06042025_08_33_03_9773.jpg', 2), ('/home/nano/Desktop/images/06042025/08/32/image_06042025_08_32_54_9763.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa3f11c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa3f11c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa3f11c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 08:36:31.778269
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/08/36/image_06042025_08_36_44_9795.jpg', 2), ('/home/nano/Desktop/images/06042025/08/36/image_06042025_08_36_34_9795.jpg', 2), ('/home/nano/Desktop/images/06042025/08/36/image_06042025_08_36_24_10804.jpg', 2), ('/home/nano/Desktop/images/06042025/08/36/image_06042025_08_36_13_9805.jpg', 2), ('/home/nano/Desktop/images/06042025/08/35/image_06042025_08_36_03_9808.jpg', 2), ('/home/nano/Desktop/images/06042025/08/35/image_06042025_08_35_54_9782.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fad2fcc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fad2fcc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fad2fcc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 08:39:02.721801
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/08/38/image_06042025_08_38_43_9815.jpg', 2), ('/home/nano/Desktop/images/06042025/08/38/image_06042025_08_38_33_9793.jpg', 2), ('/home/nano/Desktop/images/06042025/08/38/image_06042025_08_38_24_9795.jpg', 2), ('/home/nano/Desktop/images/06042025/08/38/image_06042025_08_38_14_9817.jpg', 2), ('/home/nano/Desktop/images/06042025/08/37/image_06042025_08_38_04_10812.jpg', 2), ('/home/nano/Desktop/images/06042025/08/37/image_06042025_08_37_53_9792.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9d583c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9d583c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9d583c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 08:41:32.286269
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/08/41/image_06042025_08_41_44_10843.jpg', 2), ('/home/nano/Desktop/images/06042025/08/41/image_06042025_08_41_33_9812.jpg', 2), ('/home/nano/Desktop/images/06042025/08/41/image_06042025_08_41_23_9815.jpg', 2), ('/home/nano/Desktop/images/06042025/08/41/image_06042025_08_41_14_9844.jpg', 2), ('/home/nano/Desktop/images/06042025/08/40/image_06042025_08_41_04_9818.jpg', 2), ('/home/nano/Desktop/images/06042025/08/40/image_06042025_08_40_44_10821.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa5197c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa5197c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa5197c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 08:44:03.119235
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/08/43/image_06042025_08_43_44_9796.jpg', 2), ('/home/nano/Desktop/images/06042025/08/43/image_06042025_08_43_34_10802.jpg', 2), ('/home/nano/Desktop/images/06042025/08/43/image_06042025_08_43_23_9796.jpg', 2), ('/home/nano/Desktop/images/06042025/08/43/image_06042025_08_43_14_9841.jpg', 2), ('/home/nano/Desktop/images/06042025/08/42/image_06042025_08_43_04_9844.jpg', 2), ('/home/nano/Desktop/images/06042025/08/42/image_06042025_08_42_54_9813.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9d423c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9d423c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9d423c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 08:46:31.811039
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/08/46/image_06042025_08_46_44_9822.jpg', 2), ('/home/nano/Desktop/images/06042025/08/46/image_06042025_08_46_34_9820.jpg', 2), ('/home/nano/Desktop/images/06042025/08/46/image_06042025_08_46_24_9827.jpg', 2), ('/home/nano/Desktop/images/06042025/08/46/image_06042025_08_46_14_10882.jpg', 2), ('/home/nano/Desktop/images/06042025/08/45/image_06042025_08_46_03_9833.jpg', 2), ('/home/nano/Desktop/images/06042025/08/45/image_06042025_08_45_53_9821.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa062ac18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa062ac18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa062ac18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 08:49:02.804497
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/08/48/image_06042025_08_48_44_9646.jpg', 2), ('/home/nano/Desktop/images/06042025/08/48/image_06042025_08_48_34_10653.jpg', 2), ('/home/nano/Desktop/images/06042025/08/48/image_06042025_08_48_23_9665.jpg', 2), ('/home/nano/Desktop/images/06042025/08/48/image_06042025_08_48_14_9680.jpg', 2), ('/home/nano/Desktop/images/06042025/08/47/image_06042025_08_48_04_10664.jpg', 2), ('/home/nano/Desktop/images/06042025/08/47/image_06042025_08_47_53_9661.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa5f5fba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa5f5fba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa5f5fba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 08:51:32.307397
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/08/51/image_06042025_08_51_44_9638.jpg', 2), ('/home/nano/Desktop/images/06042025/08/51/image_06042025_08_51_34_10648.jpg', 2), ('/home/nano/Desktop/images/06042025/08/51/image_06042025_08_51_23_9633.jpg', 2), ('/home/nano/Desktop/images/06042025/08/51/image_06042025_08_51_14_9667.jpg', 2), ('/home/nano/Desktop/images/06042025/08/50/image_06042025_08_51_04_10659.jpg', 2), ('/home/nano/Desktop/images/06042025/08/50/image_06042025_08_50_44_9647.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f782dfc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f782dfc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f782dfc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 08:54:03.170584
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/08/53/image_06042025_08_53_34_10658.jpg', 2), ('/home/nano/Desktop/images/06042025/08/53/image_06042025_08_53_23_9644.jpg', 2), ('/home/nano/Desktop/images/06042025/08/53/image_06042025_08_53_14_9651.jpg', 2), ('/home/nano/Desktop/images/06042025/08/52/image_06042025_08_53_04_10658.jpg', 2), ('/home/nano/Desktop/images/06042025/08/52/image_06042025_08_52_53_9648.jpg', 2), ('/home/nano/Desktop/images/06042025/08/52/image_06042025_08_52_44_9648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f94b3ec18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f94b3ec18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f94b3ec18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 08:56:31.828727
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 08:59:03.034586
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/08/57/image_06042025_08_57_44_9779.jpg', 2), ('/home/nano/Desktop/images/06042025/08/57/image_06042025_08_57_34_9780.jpg', 2), ('/home/nano/Desktop/images/06042025/08/57/image_06042025_08_57_24_10789.jpg', 2), ('/home/nano/Desktop/images/06042025/08/57/image_06042025_08_57_13_9800.jpg', 2), ('/home/nano/Desktop/images/06042025/08/56/image_06042025_08_57_03_9784.jpg', 2), ('/home/nano/Desktop/images/06042025/08/56/image_06042025_08_56_54_9801.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9cb4fc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9cb4fc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9cb4fc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 09:01:32.563832
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/09/01/image_06042025_09_01_44_9809.jpg', 2), ('/home/nano/Desktop/images/06042025/09/01/image_06042025_09_01_34_10797.jpg', 2), ('/home/nano/Desktop/images/06042025/09/01/image_06042025_09_01_23_9792.jpg', 2), ('/home/nano/Desktop/images/06042025/09/01/image_06042025_09_01_14_9834.jpg', 2), ('/home/nano/Desktop/images/06042025/09/00/image_06042025_09_01_04_9771.jpg', 2), ('/home/nano/Desktop/images/06042025/09/00/image_06042025_09_00_54_10643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8e26bba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8e26bba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8e26bba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 09:04:02.370968
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/09/03/image_06042025_09_03_44_10652.jpg', 2), ('/home/nano/Desktop/images/06042025/09/03/image_06042025_09_03_33_9642.jpg', 2), ('/home/nano/Desktop/images/06042025/09/03/image_06042025_09_03_24_9651.jpg', 2), ('/home/nano/Desktop/images/06042025/09/03/image_06042025_09_03_14_10689.jpg', 2), ('/home/nano/Desktop/images/06042025/09/02/image_06042025_09_02_54_9645.jpg', 2), ('/home/nano/Desktop/images/06042025/09/02/image_06042025_09_02_44_10657.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa9204c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa9204c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa9204c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 09:06:32.110598
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/09/06/image_06042025_09_06_44_9641.jpg', 2), ('/home/nano/Desktop/images/06042025/09/06/image_06042025_09_06_34_10649.jpg', 2), ('/home/nano/Desktop/images/06042025/09/06/image_06042025_09_06_23_9640.jpg', 2), ('/home/nano/Desktop/images/06042025/09/06/image_06042025_09_06_14_9674.jpg', 2), ('/home/nano/Desktop/images/06042025/09/05/image_06042025_09_06_04_10666.jpg', 2), ('/home/nano/Desktop/images/06042025/09/05/image_06042025_09_05_53_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa9fddc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa9fddc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa9fddc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 09:09:03.139185
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/09/08/image_06042025_09_08_43_9641.jpg', 2), ('/home/nano/Desktop/images/06042025/09/08/image_06042025_09_08_34_9642.jpg', 2), ('/home/nano/Desktop/images/06042025/09/08/image_06042025_09_08_24_10649.jpg', 2), ('/home/nano/Desktop/images/06042025/09/08/image_06042025_09_08_13_9656.jpg', 2), ('/home/nano/Desktop/images/06042025/09/07/image_06042025_09_08_04_9662.jpg', 2), ('/home/nano/Desktop/images/06042025/09/07/image_06042025_09_07_54_10650.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa712fc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa712fc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa712fc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 09:11:32.591136
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/09/11/image_06042025_09_11_43_9637.jpg', 2), ('/home/nano/Desktop/images/06042025/09/11/image_06042025_09_11_34_9647.jpg', 2), ('/home/nano/Desktop/images/06042025/09/11/image_06042025_09_11_24_10652.jpg', 2), ('/home/nano/Desktop/images/06042025/09/11/image_06042025_09_11_14_9661.jpg', 2), ('/home/nano/Desktop/images/06042025/09/10/image_06042025_09_11_04_10680.jpg', 2), ('/home/nano/Desktop/images/06042025/09/10/image_06042025_09_10_43_9645.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f822d7c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f822d7c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f822d7c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 09:14:02.646081
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/09/13/image_06042025_09_13_43_9744.jpg', 2), ('/home/nano/Desktop/images/06042025/09/13/image_06042025_09_13_33_9745.jpg', 2), ('/home/nano/Desktop/images/06042025/09/13/image_06042025_09_13_24_9742.jpg', 2), ('/home/nano/Desktop/images/06042025/09/13/image_06042025_09_13_14_10772.jpg', 2), ('/home/nano/Desktop/images/06042025/09/12/image_06042025_09_13_03_9747.jpg', 2), ('/home/nano/Desktop/images/06042025/09/12/image_06042025_09_12_53_9741.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa273cba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa273cba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa273cba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 09:16:32.096313
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/09/16/image_06042025_09_16_44_10651.jpg', 2), ('/home/nano/Desktop/images/06042025/09/16/image_06042025_09_16_33_9644.jpg', 2), ('/home/nano/Desktop/images/06042025/09/16/image_06042025_09_16_24_9640.jpg', 2), ('/home/nano/Desktop/images/06042025/09/16/image_06042025_09_16_14_10665.jpg', 2), ('/home/nano/Desktop/images/06042025/09/15/image_06042025_09_15_44_10652.jpg', 2), ('/home/nano/Desktop/images/06042025/09/15/image_06042025_09_15_33_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f82dd3c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f82dd3c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f82dd3c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 09:19:03.009985
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/09/18/image_06042025_09_18_43_9568.jpg', 2), ('/home/nano/Desktop/images/06042025/09/18/image_06042025_09_18_34_9581.jpg', 2), ('/home/nano/Desktop/images/06042025/09/18/image_06042025_09_18_24_10590.jpg', 2), ('/home/nano/Desktop/images/06042025/09/18/image_06042025_09_18_14_9582.jpg', 2), ('/home/nano/Desktop/images/06042025/09/17/image_06042025_09_18_04_10583.jpg', 2), ('/home/nano/Desktop/images/06042025/09/17/image_06042025_09_17_33_9567.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9d589c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9d589c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9d589c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 09:21:32.612325
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/09/21/image_06042025_09_21_44_9563.jpg', 2), ('/home/nano/Desktop/images/06042025/09/20/image_06042025_09_20_54_10596.jpg', 2), ('/home/nano/Desktop/images/06042025/09/20/image_06042025_09_20_43_9569.jpg', 2), ('/home/nano/Desktop/images/06042025/09/19/image_06042025_09_20_04_10573.jpg', 2), ('/home/nano/Desktop/images/06042025/09/19/image_06042025_09_19_53_9565.jpg', 2), ('/home/nano/Desktop/images/06042025/09/19/image_06042025_09_19_44_10591.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8603cba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8603cba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8603cba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 09:24:02.619312
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/09/22/image_06042025_09_23_03_9566.jpg', 2), ('/home/nano/Desktop/images/06042025/09/22/image_06042025_09_22_54_9563.jpg', 2), ('/home/nano/Desktop/images/06042025/09/21/image_06042025_09_21_53_9565.jpg', 2), ('/home/nano/Desktop/images/06042025/09/21/image_06042025_09_21_44_9563.jpg', 2), ('/home/nano/Desktop/images/06042025/09/20/image_06042025_09_20_54_10596.jpg', 2), ('/home/nano/Desktop/images/06042025/09/20/image_06042025_09_20_43_9569.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f7de4bc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7de4bc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7de4bc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 09:26:32.103063
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/09/26/image_06042025_09_26_44_10573.jpg', 2), ('/home/nano/Desktop/images/06042025/09/26/image_06042025_09_26_33_9564.jpg', 2), ('/home/nano/Desktop/images/06042025/09/26/image_06042025_09_26_24_10573.jpg', 2), ('/home/nano/Desktop/images/06042025/09/26/image_06042025_09_26_13_9580.jpg', 2), ('/home/nano/Desktop/images/06042025/09/25/image_06042025_09_26_04_9579.jpg', 2), ('/home/nano/Desktop/images/06042025/09/25/image_06042025_09_25_43_9563.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa10e9c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa10e9c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa10e9c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 09:29:02.931747
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/09/28/image_06042025_09_28_33_9579.jpg', 2), ('/home/nano/Desktop/images/06042025/09/28/image_06042025_09_28_24_9564.jpg', 2), ('/home/nano/Desktop/images/06042025/09/28/image_06042025_09_28_14_10590.jpg', 2), ('/home/nano/Desktop/images/06042025/09/27/image_06042025_09_28_03_9569.jpg', 2), ('/home/nano/Desktop/images/06042025/09/27/image_06042025_09_27_54_10572.jpg', 2), ('/home/nano/Desktop/images/06042025/09/27/image_06042025_09_27_43_9563.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa0385c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa0385c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa0385c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 09:31:32.556973
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/09/31/image_06042025_09_31_44_10576.jpg', 2), ('/home/nano/Desktop/images/06042025/09/31/image_06042025_09_31_24_10575.jpg', 2), ('/home/nano/Desktop/images/06042025/09/31/image_06042025_09_31_13_9578.jpg', 2), ('/home/nano/Desktop/images/06042025/09/30/image_06042025_09_30_24_9568.jpg', 2), ('/home/nano/Desktop/images/06042025/09/30/image_06042025_09_30_14_10594.jpg', 2), ('/home/nano/Desktop/images/06042025/09/29/image_06042025_09_30_03_9564.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f92881c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f92881c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f92881c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 09:34:02.524078
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/09/33/image_06042025_09_33_24_10578.jpg', 2), ('/home/nano/Desktop/images/06042025/09/33/image_06042025_09_33_13_9582.jpg', 2), ('/home/nano/Desktop/images/06042025/09/32/image_06042025_09_32_53_9566.jpg', 2), ('/home/nano/Desktop/images/06042025/09/32/image_06042025_09_32_44_9565.jpg', 2), ('/home/nano/Desktop/images/06042025/09/32/image_06042025_09_32_34_10576.jpg', 2), ('/home/nano/Desktop/images/06042025/09/31/image_06042025_09_31_54_9565.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f873c3ba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f873c3ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f873c3ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 09:36:32.061735
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/09/36/image_06042025_09_36_43_9565.jpg', 2), ('/home/nano/Desktop/images/06042025/09/36/image_06042025_09_36_34_10575.jpg', 2), ('/home/nano/Desktop/images/06042025/09/35/image_06042025_09_36_03_9566.jpg', 2), ('/home/nano/Desktop/images/06042025/09/35/image_06042025_09_35_54_9581.jpg', 2), ('/home/nano/Desktop/images/06042025/09/35/image_06042025_09_35_33_9565.jpg', 2), ('/home/nano/Desktop/images/06042025/09/35/image_06042025_09_35_13_9600.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f7f478c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7f478c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7f478c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 09:39:03.061220
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/09/37/image_06042025_09_38_04_10591.jpg', 2), ('/home/nano/Desktop/images/06042025/09/37/image_06042025_09_37_53_9567.jpg', 2), ('/home/nano/Desktop/images/06042025/09/37/image_06042025_09_37_44_10575.jpg', 2), ('/home/nano/Desktop/images/06042025/09/37/image_06042025_09_37_24_10575.jpg', 2), ('/home/nano/Desktop/images/06042025/09/36/image_06042025_09_36_54_10574.jpg', 2), ('/home/nano/Desktop/images/06042025/09/36/image_06042025_09_36_43_9565.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f78e10c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f78e10c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f78e10c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 09:41:32.649496
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/09/41/image_06042025_09_41_33_9565.jpg', 2), ('/home/nano/Desktop/images/06042025/09/41/image_06042025_09_41_14_10590.jpg', 2), ('/home/nano/Desktop/images/06042025/09/40/image_06042025_09_40_43_9566.jpg', 2), ('/home/nano/Desktop/images/06042025/09/40/image_06042025_09_40_14_9580.jpg', 2), ('/home/nano/Desktop/images/06042025/09/39/image_06042025_09_40_04_10587.jpg', 2), ('/home/nano/Desktop/images/06042025/09/39/image_06042025_09_39_53_9565.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f77585ba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f77585ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f77585ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 09:44:02.567917
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/09/44/image_06042025_09_44_44_10576.jpg', 2), ('/home/nano/Desktop/images/06042025/09/43/image_06042025_09_43_44_9565.jpg', 2), ('/home/nano/Desktop/images/06042025/09/43/image_06042025_09_43_34_10575.jpg', 2), ('/home/nano/Desktop/images/06042025/09/43/image_06042025_09_43_23_9565.jpg', 2), ('/home/nano/Desktop/images/06042025/09/42/image_06042025_09_43_03_9568.jpg', 2), ('/home/nano/Desktop/images/06042025/09/42/image_06042025_09_42_43_9563.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f7b68fc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7b68fc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7b68fc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 09:46:32.215340
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/09/46/image_06042025_09_46_33_9566.jpg', 2), ('/home/nano/Desktop/images/06042025/09/46/image_06042025_09_46_13_9582.jpg', 2), ('/home/nano/Desktop/images/06042025/09/45/image_06042025_09_45_44_9566.jpg', 2), ('/home/nano/Desktop/images/06042025/09/45/image_06042025_09_45_34_10577.jpg', 2), ('/home/nano/Desktop/images/06042025/09/44/image_06042025_09_45_03_9573.jpg', 2), ('/home/nano/Desktop/images/06042025/09/44/image_06042025_09_44_44_10576.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8cc43c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8cc43c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8cc43c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 09:49:03.218831
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/09/48/image_06042025_09_48_33_9583.jpg', 2), ('/home/nano/Desktop/images/06042025/09/48/image_06042025_09_48_24_10575.jpg', 2), ('/home/nano/Desktop/images/06042025/09/48/image_06042025_09_48_13_9579.jpg', 2), ('/home/nano/Desktop/images/06042025/09/47/image_06042025_09_48_04_9564.jpg', 2), ('/home/nano/Desktop/images/06042025/09/47/image_06042025_09_47_54_10574.jpg', 2), ('/home/nano/Desktop/images/06042025/09/47/image_06042025_09_47_23_9564.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f791c9c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f791c9c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f791c9c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 09:51:32.683688
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/09/51/image_06042025_09_51_43_9564.jpg', 2), ('/home/nano/Desktop/images/06042025/09/51/image_06042025_09_51_34_9564.jpg', 2), ('/home/nano/Desktop/images/06042025/09/51/image_06042025_09_51_24_10575.jpg', 2), ('/home/nano/Desktop/images/06042025/09/51/image_06042025_09_51_14_9592.jpg', 2), ('/home/nano/Desktop/images/06042025/09/50/image_06042025_09_50_44_10575.jpg', 2), ('/home/nano/Desktop/images/06042025/09/50/image_06042025_09_50_33_9564.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa93fdba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa93fdba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa93fdba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 09:54:02.475469
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/09/53/image_06042025_09_53_54_10576.jpg', 2), ('/home/nano/Desktop/images/06042025/09/53/image_06042025_09_53_34_9567.jpg', 2), ('/home/nano/Desktop/images/06042025/09/53/image_06042025_09_53_24_10574.jpg', 2), ('/home/nano/Desktop/images/06042025/09/53/image_06042025_09_53_14_9584.jpg', 2), ('/home/nano/Desktop/images/06042025/09/52/image_06042025_09_52_53_9568.jpg', 2), ('/home/nano/Desktop/images/06042025/09/51/image_06042025_09_52_03_9568.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9690dba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9690dba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9690dba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 09:56:32.163816
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 09:58:02.520068
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/09/57/image_06042025_09_57_33_9565.jpg', 2), ('/home/nano/Desktop/images/06042025/09/57/image_06042025_09_57_24_10590.jpg', 2), ('/home/nano/Desktop/images/06042025/09/57/image_06042025_09_57_13_9582.jpg', 2), ('/home/nano/Desktop/images/06042025/09/56/image_06042025_09_57_04_10581.jpg', 2), ('/home/nano/Desktop/images/06042025/09/56/image_06042025_09_56_44_9564.jpg', 2), ('/home/nano/Desktop/images/06042025/09/56/image_06042025_09_56_34_10575.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fad6c5c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fad6c5c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fad6c5c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 10:00:32.733838
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/10/00/image_06042025_10_00_23_9567.jpg', 2), ('/home/nano/Desktop/images/06042025/10/00/image_06042025_10_00_14_9583.jpg', 2), ('/home/nano/Desktop/images/06042025/09/59/image_06042025_09_59_44_10576.jpg', 2), ('/home/nano/Desktop/images/06042025/09/59/image_06042025_09_59_24_10574.jpg', 2), ('/home/nano/Desktop/images/06042025/09/59/image_06042025_09_59_13_9584.jpg', 2), ('/home/nano/Desktop/images/06042025/09/58/image_06042025_09_59_04_9569.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f927fcba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f927fcba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f927fcba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 10:03:02.454546
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/10/02/image_06042025_10_02_43_9566.jpg', 2), ('/home/nano/Desktop/images/06042025/10/02/image_06042025_10_02_34_10576.jpg', 2), ('/home/nano/Desktop/images/06042025/10/02/image_06042025_10_02_23_9565.jpg', 2), ('/home/nano/Desktop/images/06042025/10/01/image_06042025_10_02_04_10589.jpg', 2), ('/home/nano/Desktop/images/06042025/10/01/image_06042025_10_01_24_10577.jpg', 2), ('/home/nano/Desktop/images/06042025/10/00/image_06042025_10_01_04_9576.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f87cf0c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f87cf0c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f87cf0c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 10:05:32.297535
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/10/05/image_06042025_10_05_44_9566.jpg', 2), ('/home/nano/Desktop/images/06042025/10/05/image_06042025_10_05_34_10578.jpg', 2), ('/home/nano/Desktop/images/06042025/10/04/image_06042025_10_05_03_9566.jpg', 2), ('/home/nano/Desktop/images/06042025/10/04/image_06042025_10_04_54_10575.jpg', 2), ('/home/nano/Desktop/images/06042025/10/04/image_06042025_10_04_43_9566.jpg', 2), ('/home/nano/Desktop/images/06042025/10/04/image_06042025_10_04_34_9565.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fb3ae7ba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb3ae7ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb3ae7ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 10:08:02.894493
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/10/07/image_06042025_10_07_44_9564.jpg', 2), ('/home/nano/Desktop/images/06042025/10/07/image_06042025_10_07_34_10574.jpg', 2), ('/home/nano/Desktop/images/06042025/10/07/image_06042025_10_07_23_9565.jpg', 2), ('/home/nano/Desktop/images/06042025/10/07/image_06042025_10_07_14_10591.jpg', 2), ('/home/nano/Desktop/images/06042025/10/06/image_06042025_10_07_03_9573.jpg', 2), ('/home/nano/Desktop/images/06042025/10/06/image_06042025_10_06_54_10576.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8e8f3c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8e8f3c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8e8f3c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 10:10:32.766381
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/10/10/image_06042025_10_10_43_9855.jpg', 2), ('/home/nano/Desktop/images/06042025/10/10/image_06042025_10_10_33_9574.jpg', 2), ('/home/nano/Desktop/images/06042025/10/10/image_06042025_10_10_24_10579.jpg', 2), ('/home/nano/Desktop/images/06042025/10/10/image_06042025_10_10_13_9584.jpg', 2), ('/home/nano/Desktop/images/06042025/10/09/image_06042025_10_10_04_9577.jpg', 2), ('/home/nano/Desktop/images/06042025/10/09/image_06042025_10_09_54_10574.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f82032c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f82032c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f82032c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 10:13:02.571487
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/10/12/image_06042025_10_12_44_9838.jpg', 2), ('/home/nano/Desktop/images/06042025/10/12/image_06042025_10_12_34_9840.jpg', 2), ('/home/nano/Desktop/images/06042025/10/12/image_06042025_10_12_24_9839.jpg', 2), ('/home/nano/Desktop/images/06042025/10/12/image_06042025_10_12_14_9869.jpg', 2), ('/home/nano/Desktop/images/06042025/10/11/image_06042025_10_12_04_10860.jpg', 2), ('/home/nano/Desktop/images/06042025/10/11/image_06042025_10_11_53_9848.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fab24ac18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fab24ac18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fab24ac18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 10:15:32.282550
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/10/15/image_06042025_10_15_43_9789.jpg', 2), ('/home/nano/Desktop/images/06042025/10/15/image_06042025_10_15_33_9811.jpg', 2), ('/home/nano/Desktop/images/06042025/10/15/image_06042025_10_15_24_9810.jpg', 2), ('/home/nano/Desktop/images/06042025/10/15/image_06042025_10_15_14_9810.jpg', 2), ('/home/nano/Desktop/images/06042025/10/14/image_06042025_10_15_04_10829.jpg', 2), ('/home/nano/Desktop/images/06042025/10/14/image_06042025_10_14_53_9791.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f7b120ba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7b120ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7b120ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 10:18:02.833590
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/10/17/image_06042025_10_17_44_9790.jpg', 2), ('/home/nano/Desktop/images/06042025/10/17/image_06042025_10_17_34_10784.jpg', 2), ('/home/nano/Desktop/images/06042025/10/17/image_06042025_10_17_23_9771.jpg', 2), ('/home/nano/Desktop/images/06042025/10/17/image_06042025_10_17_13_9798.jpg', 2), ('/home/nano/Desktop/images/06042025/10/16/image_06042025_10_17_04_9793.jpg', 2), ('/home/nano/Desktop/images/06042025/10/16/image_06042025_10_16_54_9792.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa8a83c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa8a83c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa8a83c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 10:20:32.749918
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/10/20/image_06042025_10_20_44_10672.jpg', 2), ('/home/nano/Desktop/images/06042025/10/20/image_06042025_10_20_33_9644.jpg', 2), ('/home/nano/Desktop/images/06042025/10/20/image_06042025_10_20_24_10655.jpg', 2), ('/home/nano/Desktop/images/06042025/10/20/image_06042025_10_20_13_9685.jpg', 2), ('/home/nano/Desktop/images/06042025/10/19/image_06042025_10_20_03_9655.jpg', 2), ('/home/nano/Desktop/images/06042025/10/19/image_06042025_10_19_54_10652.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f84cb2c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f84cb2c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f84cb2c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 10:23:02.407573
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/10/22/image_06042025_10_22_33_9640.jpg', 2), ('/home/nano/Desktop/images/06042025/10/22/image_06042025_10_22_24_9640.jpg', 2), ('/home/nano/Desktop/images/06042025/10/22/image_06042025_10_22_14_10664.jpg', 2), ('/home/nano/Desktop/images/06042025/10/21/image_06042025_10_22_03_9647.jpg', 2), ('/home/nano/Desktop/images/06042025/10/21/image_06042025_10_21_54_9643.jpg', 2), ('/home/nano/Desktop/images/06042025/10/21/image_06042025_10_21_44_10652.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fae8f5c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fae8f5c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fae8f5c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 10:25:32.210697
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/10/25/image_06042025_10_25_44_9647.jpg', 2), ('/home/nano/Desktop/images/06042025/10/25/image_06042025_10_25_34_10657.jpg', 2), ('/home/nano/Desktop/images/06042025/10/25/image_06042025_10_25_23_9648.jpg', 2), ('/home/nano/Desktop/images/06042025/10/25/image_06042025_10_25_14_9666.jpg', 2), ('/home/nano/Desktop/images/06042025/10/24/image_06042025_10_25_04_10668.jpg', 2), ('/home/nano/Desktop/images/06042025/10/24/image_06042025_10_24_53_9647.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8d663c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8d663c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8d663c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 10:28:02.853149
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/10/27/image_06042025_10_27_44_9673.jpg', 2), ('/home/nano/Desktop/images/06042025/10/27/image_06042025_10_27_34_10660.jpg', 2), ('/home/nano/Desktop/images/06042025/10/27/image_06042025_10_27_23_9650.jpg', 2), ('/home/nano/Desktop/images/06042025/10/27/image_06042025_10_27_14_9668.jpg', 2), ('/home/nano/Desktop/images/06042025/10/26/image_06042025_10_27_04_10665.jpg', 2), ('/home/nano/Desktop/images/06042025/10/26/image_06042025_10_26_53_9650.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7faedeeba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7faedeeba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7faedeeba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 10:30:32.686832
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/10/30/image_06042025_10_30_44_10772.jpg', 2), ('/home/nano/Desktop/images/06042025/10/30/image_06042025_10_30_33_9767.jpg', 2), ('/home/nano/Desktop/images/06042025/10/30/image_06042025_10_30_24_9787.jpg', 2), ('/home/nano/Desktop/images/06042025/10/30/image_06042025_10_30_14_9788.jpg', 2), ('/home/nano/Desktop/images/06042025/10/29/image_06042025_10_30_04_10780.jpg', 2), ('/home/nano/Desktop/images/06042025/10/29/image_06042025_10_29_53_9766.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa6651ba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa6651ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa6651ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 10:33:02.355661
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/10/32/image_06042025_10_32_43_9790.jpg', 2), ('/home/nano/Desktop/images/06042025/10/32/image_06042025_10_32_34_9788.jpg', 2), ('/home/nano/Desktop/images/06042025/10/32/image_06042025_10_32_24_9791.jpg', 2), ('/home/nano/Desktop/images/06042025/10/32/image_06042025_10_32_14_10826.jpg', 2), ('/home/nano/Desktop/images/06042025/10/31/image_06042025_10_32_03_9772.jpg', 2), ('/home/nano/Desktop/images/06042025/10/31/image_06042025_10_31_44_9769.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa7a4cc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa7a4cc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa7a4cc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 10:35:32.226447
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/10/35/image_06042025_10_35_44_9761.jpg', 2), ('/home/nano/Desktop/images/06042025/10/35/image_06042025_10_35_34_10790.jpg', 2), ('/home/nano/Desktop/images/06042025/10/35/image_06042025_10_35_23_9784.jpg', 2), ('/home/nano/Desktop/images/06042025/10/35/image_06042025_10_35_14_9810.jpg', 2), ('/home/nano/Desktop/images/06042025/10/34/image_06042025_10_35_04_9795.jpg', 2), ('/home/nano/Desktop/images/06042025/10/34/image_06042025_10_34_54_9816.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8f8d2c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8f8d2c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8f8d2c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 10:38:02.897809
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/10/37/image_06042025_10_37_44_10642.jpg', 2), ('/home/nano/Desktop/images/06042025/10/37/image_06042025_10_37_33_9634.jpg', 2), ('/home/nano/Desktop/images/06042025/10/37/image_06042025_10_37_24_9762.jpg', 2), ('/home/nano/Desktop/images/06042025/10/37/image_06042025_10_37_14_9794.jpg', 2), ('/home/nano/Desktop/images/06042025/10/36/image_06042025_10_37_04_10776.jpg', 2), ('/home/nano/Desktop/images/06042025/10/36/image_06042025_10_36_53_9766.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f785b9c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f785b9c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f785b9c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 10:40:32.686096
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/10/40/image_06042025_10_40_44_9853.jpg', 2), ('/home/nano/Desktop/images/06042025/10/40/image_06042025_10_40_34_9851.jpg', 2), ('/home/nano/Desktop/images/06042025/10/40/image_06042025_10_40_24_10651.jpg', 2), ('/home/nano/Desktop/images/06042025/10/39/image_06042025_10_40_04_9638.jpg', 2), ('/home/nano/Desktop/images/06042025/10/39/image_06042025_10_39_54_10647.jpg', 2), ('/home/nano/Desktop/images/06042025/10/39/image_06042025_10_39_43_9783.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa03b9ba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa03b9ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa03b9ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 10:43:02.547458
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/10/42/image_06042025_10_42_44_9829.jpg', 2), ('/home/nano/Desktop/images/06042025/10/42/image_06042025_10_42_34_9855.jpg', 2), ('/home/nano/Desktop/images/06042025/10/42/image_06042025_10_42_24_10642.jpg', 2), ('/home/nano/Desktop/images/06042025/10/42/image_06042025_10_42_13_9673.jpg', 2), ('/home/nano/Desktop/images/06042025/10/41/image_06042025_10_42_04_9634.jpg', 2), ('/home/nano/Desktop/images/06042025/10/41/image_06042025_10_41_54_10651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa7e3fc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa7e3fc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa7e3fc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 10:45:32.260164
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/10/45/image_06042025_10_45_43_9814.jpg', 2), ('/home/nano/Desktop/images/06042025/10/45/image_06042025_10_45_34_9644.jpg', 2), ('/home/nano/Desktop/images/06042025/10/45/image_06042025_10_45_24_10656.jpg', 2), ('/home/nano/Desktop/images/06042025/10/45/image_06042025_10_45_13_9849.jpg', 2), ('/home/nano/Desktop/images/06042025/10/44/image_06042025_10_45_03_9837.jpg', 2), ('/home/nano/Desktop/images/06042025/10/44/image_06042025_10_44_54_9827.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f7fdcfc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7fdcfc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7fdcfc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 10:48:02.857885
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/10/47/image_06042025_10_47_43_9821.jpg', 2), ('/home/nano/Desktop/images/06042025/10/47/image_06042025_10_47_33_9843.jpg', 2), ('/home/nano/Desktop/images/06042025/10/47/image_06042025_10_47_24_9819.jpg', 2), ('/home/nano/Desktop/images/06042025/10/47/image_06042025_10_47_14_9880.jpg', 2), ('/home/nano/Desktop/images/06042025/10/46/image_06042025_10_47_04_10659.jpg', 2), ('/home/nano/Desktop/images/06042025/10/46/image_06042025_10_46_53_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8040bc50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8040bc50>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8040bc50>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 10:50:31.825764
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/10/50/image_06042025_10_50_44_10656.jpg', 2), ('/home/nano/Desktop/images/06042025/10/50/image_06042025_10_50_33_9648.jpg', 2), ('/home/nano/Desktop/images/06042025/10/50/image_06042025_10_50_24_10674.jpg', 2), ('/home/nano/Desktop/images/06042025/10/50/image_06042025_10_50_13_9667.jpg', 2), ('/home/nano/Desktop/images/06042025/10/49/image_06042025_10_50_04_9667.jpg', 2), ('/home/nano/Desktop/images/06042025/10/49/image_06042025_10_49_54_10657.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fac80cc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fac80cc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fac80cc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 10:53:02.677350
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/10/52/image_06042025_10_52_44_10673.jpg', 2), ('/home/nano/Desktop/images/06042025/10/52/image_06042025_10_52_33_9641.jpg', 2), ('/home/nano/Desktop/images/06042025/10/52/image_06042025_10_52_24_9643.jpg', 2), ('/home/nano/Desktop/images/06042025/10/52/image_06042025_10_52_14_10667.jpg', 2), ('/home/nano/Desktop/images/06042025/10/51/image_06042025_10_52_03_9646.jpg', 2), ('/home/nano/Desktop/images/06042025/10/51/image_06042025_10_51_54_9644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa3763c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa3763c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa3763c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 10:55:32.351500
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/10/55/image_06042025_10_55_44_9639.jpg', 2), ('/home/nano/Desktop/images/06042025/10/55/image_06042025_10_55_24_9638.jpg', 2), ('/home/nano/Desktop/images/06042025/10/55/image_06042025_10_55_14_10661.jpg', 2), ('/home/nano/Desktop/images/06042025/10/54/image_06042025_10_55_03_9644.jpg', 2), ('/home/nano/Desktop/images/06042025/10/54/image_06042025_10_54_54_9634.jpg', 2), ('/home/nano/Desktop/images/06042025/10/54/image_06042025_10_54_44_10641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fb07f0c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb07f0c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb07f0c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 10:58:02.950383
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/10/57/image_06042025_10_57_44_9634.jpg', 2), ('/home/nano/Desktop/images/06042025/10/57/image_06042025_10_57_34_10663.jpg', 2), ('/home/nano/Desktop/images/06042025/10/57/image_06042025_10_57_14_9652.jpg', 2), ('/home/nano/Desktop/images/06042025/10/56/image_06042025_10_56_53_9637.jpg', 2), ('/home/nano/Desktop/images/06042025/10/56/image_06042025_10_56_44_9628.jpg', 2), ('/home/nano/Desktop/images/06042025/10/56/image_06042025_10_56_34_10650.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fb470fba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb470fba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb470fba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 11:00:32.107145
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/11/00/image_06042025_11_00_43_9646.jpg', 2), ('/home/nano/Desktop/images/06042025/11/00/image_06042025_11_00_34_9636.jpg', 2), ('/home/nano/Desktop/images/06042025/11/00/image_06042025_11_00_13_9653.jpg', 2), ('/home/nano/Desktop/images/06042025/10/59/image_06042025_11_00_04_9645.jpg', 2), ('/home/nano/Desktop/images/06042025/10/59/image_06042025_10_59_54_10646.jpg', 2), ('/home/nano/Desktop/images/06042025/10/59/image_06042025_10_59_43_9633.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f86766c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f86766c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f86766c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 11:03:02.839595
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/11/02/image_06042025_11_02_44_10655.jpg', 2), ('/home/nano/Desktop/images/06042025/11/02/image_06042025_11_02_33_9661.jpg', 2), ('/home/nano/Desktop/images/06042025/11/01/image_06042025_11_02_03_9653.jpg', 2), ('/home/nano/Desktop/images/06042025/11/01/image_06042025_11_01_54_9638.jpg', 2), ('/home/nano/Desktop/images/06042025/11/01/image_06042025_11_01_44_10649.jpg', 2), ('/home/nano/Desktop/images/06042025/11/00/image_06042025_11_01_03_9649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f81abec18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f81abec18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f81abec18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 11:05:32.589413
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/11/05/image_06042025_11_05_34_10646.jpg', 2), ('/home/nano/Desktop/images/06042025/11/05/image_06042025_11_05_14_9657.jpg', 2), ('/home/nano/Desktop/images/06042025/11/04/image_06042025_11_05_04_10651.jpg', 2), ('/home/nano/Desktop/images/06042025/11/04/image_06042025_11_04_53_9638.jpg', 2), ('/home/nano/Desktop/images/06042025/11/04/image_06042025_11_04_44_10647.jpg', 2), ('/home/nano/Desktop/images/06042025/11/04/image_06042025_11_04_33_9656.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa365aba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa365aba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa365aba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 11:08:02.212907
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/11/07/image_06042025_11_07_44_9774.jpg', 2), ('/home/nano/Desktop/images/06042025/11/07/image_06042025_11_07_34_10637.jpg', 2), ('/home/nano/Desktop/images/06042025/11/07/image_06042025_11_07_23_9631.jpg', 2), ('/home/nano/Desktop/images/06042025/11/07/image_06042025_11_07_14_10668.jpg', 2), ('/home/nano/Desktop/images/06042025/11/06/image_06042025_11_07_03_9654.jpg', 2), ('/home/nano/Desktop/images/06042025/11/06/image_06042025_11_06_54_9771.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f978b8c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f978b8c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f978b8c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 11:10:32.096319
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/11/10/image_06042025_11_10_43_9797.jpg', 2), ('/home/nano/Desktop/images/06042025/11/10/image_06042025_11_10_33_9804.jpg', 2), ('/home/nano/Desktop/images/06042025/11/10/image_06042025_11_10_24_9804.jpg', 2), ('/home/nano/Desktop/images/06042025/11/10/image_06042025_11_10_14_9790.jpg', 2), ('/home/nano/Desktop/images/06042025/11/09/image_06042025_11_10_04_10815.jpg', 2), ('/home/nano/Desktop/images/06042025/11/09/image_06042025_11_09_53_9763.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fb3faec18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb3faec18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb3faec18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 11:13:02.904623
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/11/12/image_06042025_11_12_43_9794.jpg', 2), ('/home/nano/Desktop/images/06042025/11/12/image_06042025_11_12_34_9811.jpg', 2), ('/home/nano/Desktop/images/06042025/11/12/image_06042025_11_12_24_9813.jpg', 2), ('/home/nano/Desktop/images/06042025/11/12/image_06042025_11_12_14_9818.jpg', 2), ('/home/nano/Desktop/images/06042025/11/11/image_06042025_11_12_04_10809.jpg', 2), ('/home/nano/Desktop/images/06042025/11/11/image_06042025_11_11_53_9794.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8b6f6c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8b6f6c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8b6f6c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 11:15:32.562264
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/11/15/image_06042025_11_15_34_9640.jpg', 2), ('/home/nano/Desktop/images/06042025/11/15/image_06042025_11_15_24_10650.jpg', 2), ('/home/nano/Desktop/images/06042025/11/15/image_06042025_11_15_13_9658.jpg', 2), ('/home/nano/Desktop/images/06042025/11/14/image_06042025_11_15_04_10663.jpg', 2), ('/home/nano/Desktop/images/06042025/11/14/image_06042025_11_14_53_9640.jpg', 2), ('/home/nano/Desktop/images/06042025/11/14/image_06042025_11_14_44_9642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f88e9bc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f88e9bc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f88e9bc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 11:18:02.250864
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/11/17/image_06042025_11_17_43_9638.jpg', 2), ('/home/nano/Desktop/images/06042025/11/17/image_06042025_11_17_34_9644.jpg', 2), ('/home/nano/Desktop/images/06042025/11/17/image_06042025_11_17_13_9675.jpg', 2), ('/home/nano/Desktop/images/06042025/11/16/image_06042025_11_16_54_10649.jpg', 2), ('/home/nano/Desktop/images/06042025/11/16/image_06042025_11_16_43_9640.jpg', 2), ('/home/nano/Desktop/images/06042025/11/16/image_06042025_11_16_34_9642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa89d0c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa89d0c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa89d0c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 11:20:32.123627
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/11/20/image_06042025_11_20_44_10779.jpg', 2), ('/home/nano/Desktop/images/06042025/11/20/image_06042025_11_20_33_9638.jpg', 2), ('/home/nano/Desktop/images/06042025/11/20/image_06042025_11_20_24_9644.jpg', 2), ('/home/nano/Desktop/images/06042025/11/19/image_06042025_11_20_03_9658.jpg', 2), ('/home/nano/Desktop/images/06042025/11/19/image_06042025_11_19_54_9644.jpg', 2), ('/home/nano/Desktop/images/06042025/11/19/image_06042025_11_19_44_10654.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f91b37c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f91b37c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f91b37c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 11:23:02.894079
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/11/22/image_06042025_11_22_44_9801.jpg', 2), ('/home/nano/Desktop/images/06042025/11/22/image_06042025_11_22_34_9800.jpg', 2), ('/home/nano/Desktop/images/06042025/11/22/image_06042025_11_22_24_10809.jpg', 2), ('/home/nano/Desktop/images/06042025/11/22/image_06042025_11_22_13_9844.jpg', 2), ('/home/nano/Desktop/images/06042025/11/21/image_06042025_11_22_04_9821.jpg', 2), ('/home/nano/Desktop/images/06042025/11/21/image_06042025_11_21_54_9800.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f92e65c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f92e65c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f92e65c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 11:25:32.588644
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/11/25/image_06042025_11_25_44_10808.jpg', 2), ('/home/nano/Desktop/images/06042025/11/25/image_06042025_11_25_33_9818.jpg', 2), ('/home/nano/Desktop/images/06042025/11/25/image_06042025_11_25_24_9801.jpg', 2), ('/home/nano/Desktop/images/06042025/11/25/image_06042025_11_25_14_9817.jpg', 2), ('/home/nano/Desktop/images/06042025/11/24/image_06042025_11_25_04_9806.jpg', 2), ('/home/nano/Desktop/images/06042025/11/24/image_06042025_11_24_54_10806.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f77b69c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f77b69c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f77b69c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 11:28:02.287222
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/11/27/image_06042025_11_27_44_10649.jpg', 2), ('/home/nano/Desktop/images/06042025/11/27/image_06042025_11_27_33_9636.jpg', 2), ('/home/nano/Desktop/images/06042025/11/27/image_06042025_11_27_24_9637.jpg', 2), ('/home/nano/Desktop/images/06042025/11/27/image_06042025_11_27_14_10666.jpg', 2), ('/home/nano/Desktop/images/06042025/11/26/image_06042025_11_27_03_9636.jpg', 2), ('/home/nano/Desktop/images/06042025/11/26/image_06042025_11_26_54_10645.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f905d4c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f905d4c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f905d4c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 11:30:32.163460
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/11/30/image_06042025_11_30_44_9848.jpg', 2), ('/home/nano/Desktop/images/06042025/11/30/image_06042025_11_30_34_9827.jpg', 2), ('/home/nano/Desktop/images/06042025/11/30/image_06042025_11_30_24_10835.jpg', 2), ('/home/nano/Desktop/images/06042025/11/30/image_06042025_11_30_13_9845.jpg', 2), ('/home/nano/Desktop/images/06042025/11/29/image_06042025_11_30_03_9825.jpg', 2), ('/home/nano/Desktop/images/06042025/11/29/image_06042025_11_29_54_9827.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f809a7c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f809a7c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f809a7c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 11:33:02.835957
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/11/33/image_06042025_11_33_53_9641.jpg', 2), ('/home/nano/Desktop/images/06042025/11/32/image_06042025_11_32_44_10651.jpg', 2), ('/home/nano/Desktop/images/06042025/11/32/image_06042025_11_32_33_9641.jpg', 2), ('/home/nano/Desktop/images/06042025/11/32/image_06042025_11_32_24_9639.jpg', 2), ('/home/nano/Desktop/images/06042025/11/32/image_06042025_11_32_14_10666.jpg', 2), ('/home/nano/Desktop/images/06042025/11/31/image_06042025_11_32_03_9658.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f94efcba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f94efcba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f94efcba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 11:35:32.619390
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/11/35/image_06042025_11_35_44_10799.jpg', 2), ('/home/nano/Desktop/images/06042025/11/35/image_06042025_11_35_33_9791.jpg', 2), ('/home/nano/Desktop/images/06042025/11/35/image_06042025_11_35_24_9815.jpg', 2), ('/home/nano/Desktop/images/06042025/11/35/image_06042025_11_35_14_9659.jpg', 2), ('/home/nano/Desktop/images/06042025/11/34/image_06042025_11_35_04_10665.jpg', 2), ('/home/nano/Desktop/images/06042025/11/34/image_06042025_11_34_53_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f897f1c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f897f1c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f897f1c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 11:38:02.292657
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/11/37/image_06042025_11_37_43_9644.jpg', 2), ('/home/nano/Desktop/images/06042025/11/37/image_06042025_11_37_24_10653.jpg', 2), ('/home/nano/Desktop/images/06042025/11/37/image_06042025_11_37_13_9661.jpg', 2), ('/home/nano/Desktop/images/06042025/11/36/image_06042025_11_37_04_9657.jpg', 2), ('/home/nano/Desktop/images/06042025/11/36/image_06042025_11_36_54_10654.jpg', 2), ('/home/nano/Desktop/images/06042025/11/36/image_06042025_11_36_43_9645.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8c71dc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8c71dc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8c71dc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 11:40:32.185813
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/11/40/image_06042025_11_40_44_10667.jpg', 2), ('/home/nano/Desktop/images/06042025/11/40/image_06042025_11_40_33_9639.jpg', 2), ('/home/nano/Desktop/images/06042025/11/40/image_06042025_11_40_24_9636.jpg', 2), ('/home/nano/Desktop/images/06042025/11/40/image_06042025_11_40_14_10672.jpg', 2), ('/home/nano/Desktop/images/06042025/11/39/image_06042025_11_40_03_9653.jpg', 2), ('/home/nano/Desktop/images/06042025/11/39/image_06042025_11_39_54_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8aa44ba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8aa44ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8aa44ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 11:43:03.047718
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/11/42/image_06042025_11_42_44_9643.jpg', 2), ('/home/nano/Desktop/images/06042025/11/42/image_06042025_11_42_34_10671.jpg', 2), ('/home/nano/Desktop/images/06042025/11/42/image_06042025_11_42_23_9660.jpg', 2), ('/home/nano/Desktop/images/06042025/11/42/image_06042025_11_42_14_9666.jpg', 2), ('/home/nano/Desktop/images/06042025/11/41/image_06042025_11_42_04_10672.jpg', 2), ('/home/nano/Desktop/images/06042025/11/41/image_06042025_11_41_53_9657.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f90a5eba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f90a5eba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f90a5eba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 11:45:31.747261
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/11/45/image_06042025_11_45_43_9631.jpg', 2), ('/home/nano/Desktop/images/06042025/11/45/image_06042025_11_45_34_10640.jpg', 2), ('/home/nano/Desktop/images/06042025/11/45/image_06042025_11_45_23_9629.jpg', 2), ('/home/nano/Desktop/images/06042025/11/45/image_06042025_11_45_14_9664.jpg', 2), ('/home/nano/Desktop/images/06042025/11/44/image_06042025_11_45_04_10646.jpg', 2), ('/home/nano/Desktop/images/06042025/11/44/image_06042025_11_44_53_9646.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f93216c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f93216c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f93216c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 11:48:02.305656
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/11/47/image_06042025_11_47_44_9761.jpg', 2), ('/home/nano/Desktop/images/06042025/11/47/image_06042025_11_47_34_10768.jpg', 2), ('/home/nano/Desktop/images/06042025/11/47/image_06042025_11_47_23_9763.jpg', 2), ('/home/nano/Desktop/images/06042025/11/47/image_06042025_11_47_13_9779.jpg', 2), ('/home/nano/Desktop/images/06042025/11/46/image_06042025_11_47_04_9634.jpg', 2), ('/home/nano/Desktop/images/06042025/11/46/image_06042025_11_46_54_10644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fb28e0c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb28e0c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb28e0c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 11:50:32.320003
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/11/50/image_06042025_11_50_44_9644.jpg', 2), ('/home/nano/Desktop/images/06042025/11/50/image_06042025_11_50_34_10653.jpg', 2), ('/home/nano/Desktop/images/06042025/11/50/image_06042025_11_50_23_9645.jpg', 2), ('/home/nano/Desktop/images/06042025/11/50/image_06042025_11_50_14_9663.jpg', 2), ('/home/nano/Desktop/images/06042025/11/49/image_06042025_11_50_04_10685.jpg', 2), ('/home/nano/Desktop/images/06042025/11/49/image_06042025_11_49_53_9644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f95ae2c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f95ae2c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f95ae2c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 11:53:03.182826
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/11/52/image_06042025_11_52_44_9643.jpg', 2), ('/home/nano/Desktop/images/06042025/11/52/image_06042025_11_52_34_10650.jpg', 2), ('/home/nano/Desktop/images/06042025/11/52/image_06042025_11_52_23_9642.jpg', 2), ('/home/nano/Desktop/images/06042025/11/52/image_06042025_11_52_14_9660.jpg', 2), ('/home/nano/Desktop/images/06042025/11/51/image_06042025_11_52_04_10657.jpg', 2), ('/home/nano/Desktop/images/06042025/11/51/image_06042025_11_51_53_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa465ac18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa465ac18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa465ac18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 11:55:31.836520
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/11/55/image_06042025_11_55_43_9856.jpg', 2), ('/home/nano/Desktop/images/06042025/11/55/image_06042025_11_55_34_9857.jpg', 2), ('/home/nano/Desktop/images/06042025/11/55/image_06042025_11_55_24_9786.jpg', 2), ('/home/nano/Desktop/images/06042025/11/55/image_06042025_11_55_14_9827.jpg', 2), ('/home/nano/Desktop/images/06042025/11/54/image_06042025_11_55_04_10817.jpg', 2), ('/home/nano/Desktop/images/06042025/11/54/image_06042025_11_54_53_9809.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f955c1c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f955c1c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f955c1c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 11:58:02.538358
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/11/57/image_06042025_11_57_44_10798.jpg', 2), ('/home/nano/Desktop/images/06042025/11/57/image_06042025_11_57_33_9810.jpg', 2), ('/home/nano/Desktop/images/06042025/11/57/image_06042025_11_57_23_9781.jpg', 2), ('/home/nano/Desktop/images/06042025/11/57/image_06042025_11_57_14_9825.jpg', 2), ('/home/nano/Desktop/images/06042025/11/56/image_06042025_11_57_04_9805.jpg', 2), ('/home/nano/Desktop/images/06042025/11/56/image_06042025_11_56_54_10666.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa2a12c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa2a12c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa2a12c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 12:00:32.514135
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/12/00/image_06042025_12_00_43_9822.jpg', 2), ('/home/nano/Desktop/images/06042025/12/00/image_06042025_12_00_34_9822.jpg', 2), ('/home/nano/Desktop/images/06042025/12/00/image_06042025_12_00_24_9640.jpg', 2), ('/home/nano/Desktop/images/06042025/12/00/image_06042025_12_00_14_10689.jpg', 2), ('/home/nano/Desktop/images/06042025/11/59/image_06042025_12_00_03_9652.jpg', 2), ('/home/nano/Desktop/images/06042025/11/59/image_06042025_11_59_54_10648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f84395c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f84395c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f84395c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 12:03:02.398557
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/12/02/image_06042025_12_02_44_10642.jpg', 2), ('/home/nano/Desktop/images/06042025/12/02/image_06042025_12_02_24_10645.jpg', 2), ('/home/nano/Desktop/images/06042025/12/01/image_06042025_12_01_54_10646.jpg', 2), ('/home/nano/Desktop/images/06042025/12/01/image_06042025_12_01_43_9770.jpg', 2), ('/home/nano/Desktop/images/06042025/12/01/image_06042025_12_01_33_9769.jpg', 2), ('/home/nano/Desktop/images/06042025/12/01/image_06042025_12_01_24_9771.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8d3c6c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8d3c6c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8d3c6c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 12:05:32.000350
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/12/05/image_06042025_12_05_33_9637.jpg', 2), ('/home/nano/Desktop/images/06042025/12/05/image_06042025_12_05_24_9634.jpg', 2), ('/home/nano/Desktop/images/06042025/12/04/image_06042025_12_04_54_9811.jpg', 2), ('/home/nano/Desktop/images/06042025/12/04/image_06042025_12_04_44_10640.jpg', 2), ('/home/nano/Desktop/images/06042025/12/04/image_06042025_12_04_33_9634.jpg', 2), ('/home/nano/Desktop/images/06042025/12/04/image_06042025_12_04_24_9634.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa86f7ba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa86f7ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa86f7ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 12:08:02.561748
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/12/07/image_06042025_12_07_34_10657.jpg', 2), ('/home/nano/Desktop/images/06042025/12/07/image_06042025_12_07_23_9648.jpg', 2), ('/home/nano/Desktop/images/06042025/12/07/image_06042025_12_07_14_9667.jpg', 2), ('/home/nano/Desktop/images/06042025/12/06/image_06042025_12_07_04_10655.jpg', 2), ('/home/nano/Desktop/images/06042025/12/06/image_06042025_12_06_53_9633.jpg', 2), ('/home/nano/Desktop/images/06042025/12/06/image_06042025_12_06_44_9653.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9b364ba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9b364ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9b364ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 12:10:32.466098
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/12/10/image_06042025_12_10_44_9773.jpg', 2), ('/home/nano/Desktop/images/06042025/12/10/image_06042025_12_10_34_10783.jpg', 2), ('/home/nano/Desktop/images/06042025/12/10/image_06042025_12_10_14_9806.jpg', 2), ('/home/nano/Desktop/images/06042025/12/09/image_06042025_12_09_43_9761.jpg', 2), ('/home/nano/Desktop/images/06042025/12/09/image_06042025_12_09_33_9764.jpg', 2), ('/home/nano/Desktop/images/06042025/12/09/image_06042025_12_09_24_9787.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fb0ec0c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb0ec0c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb0ec0c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 12:13:02.208536
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/12/12/image_06042025_12_12_43_9812.jpg', 2), ('/home/nano/Desktop/images/06042025/12/12/image_06042025_12_12_33_9802.jpg', 2), ('/home/nano/Desktop/images/06042025/12/12/image_06042025_12_12_24_9651.jpg', 2), ('/home/nano/Desktop/images/06042025/12/12/image_06042025_12_12_14_9841.jpg', 2), ('/home/nano/Desktop/images/06042025/12/11/image_06042025_12_12_04_10788.jpg', 2), ('/home/nano/Desktop/images/06042025/12/11/image_06042025_12_11_53_9783.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8a39bba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8a39bba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8a39bba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 12:15:31.976001
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/12/15/image_06042025_12_15_44_9635.jpg', 2), ('/home/nano/Desktop/images/06042025/12/15/image_06042025_12_15_34_10647.jpg', 2), ('/home/nano/Desktop/images/06042025/12/15/image_06042025_12_15_23_9638.jpg', 2), ('/home/nano/Desktop/images/06042025/12/15/image_06042025_12_15_14_9660.jpg', 2), ('/home/nano/Desktop/images/06042025/12/14/image_06042025_12_15_04_10673.jpg', 2), ('/home/nano/Desktop/images/06042025/12/14/image_06042025_12_14_53_9647.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fb5279c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb5279c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb5279c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 12:18:02.657863
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/12/17/image_06042025_12_17_43_9633.jpg', 2), ('/home/nano/Desktop/images/06042025/12/17/image_06042025_12_17_34_9637.jpg', 2), ('/home/nano/Desktop/images/06042025/12/17/image_06042025_12_17_24_10647.jpg', 2), ('/home/nano/Desktop/images/06042025/12/17/image_06042025_12_17_13_9658.jpg', 2), ('/home/nano/Desktop/images/06042025/12/16/image_06042025_12_17_04_9641.jpg', 2), ('/home/nano/Desktop/images/06042025/12/16/image_06042025_12_16_54_10647.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa8496c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa8496c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa8496c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 12:20:32.466515
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/12/20/image_06042025_12_20_44_10650.jpg', 2), ('/home/nano/Desktop/images/06042025/12/20/image_06042025_12_20_33_9645.jpg', 2), ('/home/nano/Desktop/images/06042025/12/20/image_06042025_12_20_24_10672.jpg', 2), ('/home/nano/Desktop/images/06042025/12/19/image_06042025_12_19_43_9647.jpg', 2), ('/home/nano/Desktop/images/06042025/12/19/image_06042025_12_19_13_9665.jpg', 2), ('/home/nano/Desktop/images/06042025/12/18/image_06042025_12_19_04_9650.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa4250c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa4250c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa4250c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 12:23:02.289921
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/12/22/image_06042025_12_22_43_9634.jpg', 2), ('/home/nano/Desktop/images/06042025/12/22/image_06042025_12_22_34_9636.jpg', 2), ('/home/nano/Desktop/images/06042025/12/22/image_06042025_12_22_13_9653.jpg', 2), ('/home/nano/Desktop/images/06042025/12/21/image_06042025_12_22_04_9643.jpg', 2), ('/home/nano/Desktop/images/06042025/12/21/image_06042025_12_21_54_10649.jpg', 2), ('/home/nano/Desktop/images/06042025/12/21/image_06042025_12_21_34_9634.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8da7dc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8da7dc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8da7dc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 12:25:31.966599
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/12/25/image_06042025_12_25_43_9779.jpg', 2), ('/home/nano/Desktop/images/06042025/12/25/image_06042025_12_25_34_9775.jpg', 2), ('/home/nano/Desktop/images/06042025/12/25/image_06042025_12_25_24_9785.jpg', 2), ('/home/nano/Desktop/images/06042025/12/25/image_06042025_12_25_14_10814.jpg', 2), ('/home/nano/Desktop/images/06042025/12/24/image_06042025_12_25_03_9859.jpg', 2), ('/home/nano/Desktop/images/06042025/12/24/image_06042025_12_24_53_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f804a8c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f804a8c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f804a8c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 12:28:02.583741
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/12/27/image_06042025_12_27_44_9778.jpg', 2), ('/home/nano/Desktop/images/06042025/12/27/image_06042025_12_27_34_10785.jpg', 2), ('/home/nano/Desktop/images/06042025/12/27/image_06042025_12_27_23_9775.jpg', 2), ('/home/nano/Desktop/images/06042025/12/27/image_06042025_12_27_14_9800.jpg', 2), ('/home/nano/Desktop/images/06042025/12/26/image_06042025_12_27_04_9775.jpg', 2), ('/home/nano/Desktop/images/06042025/12/26/image_06042025_12_26_54_10786.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f843afba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f843afba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f843afba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 12:30:32.454694
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/12/30/image_06042025_12_30_43_9668.jpg', 2), ('/home/nano/Desktop/images/06042025/12/30/image_06042025_12_30_34_9650.jpg', 2), ('/home/nano/Desktop/images/06042025/12/30/image_06042025_12_30_24_10659.jpg', 2), ('/home/nano/Desktop/images/06042025/12/29/image_06042025_12_30_04_9656.jpg', 2), ('/home/nano/Desktop/images/06042025/12/29/image_06042025_12_29_54_10674.jpg', 2), ('/home/nano/Desktop/images/06042025/12/29/image_06042025_12_29_43_9809.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f775ddc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f775ddc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f775ddc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 12:33:02.261216
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/12/32/image_06042025_12_32_44_10796.jpg', 2), ('/home/nano/Desktop/images/06042025/12/32/image_06042025_12_32_33_9767.jpg', 2), ('/home/nano/Desktop/images/06042025/12/32/image_06042025_12_32_23_9767.jpg', 2), ('/home/nano/Desktop/images/06042025/12/32/image_06042025_12_32_14_9787.jpg', 2), ('/home/nano/Desktop/images/06042025/12/31/image_06042025_12_32_04_10684.jpg', 2), ('/home/nano/Desktop/images/06042025/12/31/image_06042025_12_31_43_9666.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f91bc6c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f91bc6c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f91bc6c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 12:35:31.957870
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/12/35/image_06042025_12_35_44_10645.jpg', 2), ('/home/nano/Desktop/images/06042025/12/35/image_06042025_12_35_33_9653.jpg', 2), ('/home/nano/Desktop/images/06042025/12/35/image_06042025_12_35_24_10657.jpg', 2), ('/home/nano/Desktop/images/06042025/12/35/image_06042025_12_35_13_9688.jpg', 2), ('/home/nano/Desktop/images/06042025/12/34/image_06042025_12_35_03_9662.jpg', 2), ('/home/nano/Desktop/images/06042025/12/34/image_06042025_12_34_54_10656.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fab16dc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fab16dc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fab16dc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 12:38:02.559623
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/12/37/image_06042025_12_37_44_10774.jpg', 2), ('/home/nano/Desktop/images/06042025/12/37/image_06042025_12_37_33_9772.jpg', 2), ('/home/nano/Desktop/images/06042025/12/37/image_06042025_12_37_24_9651.jpg', 2), ('/home/nano/Desktop/images/06042025/12/37/image_06042025_12_37_14_10661.jpg', 2), ('/home/nano/Desktop/images/06042025/12/36/image_06042025_12_37_03_9648.jpg', 2), ('/home/nano/Desktop/images/06042025/12/36/image_06042025_12_36_54_9634.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fb299bc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb299bc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb299bc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 12:40:32.445867
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/12/40/image_06042025_12_40_44_9639.jpg', 2), ('/home/nano/Desktop/images/06042025/12/40/image_06042025_12_40_34_10646.jpg', 2), ('/home/nano/Desktop/images/06042025/12/40/image_06042025_12_40_24_9637.jpg', 2), ('/home/nano/Desktop/images/06042025/12/40/image_06042025_12_40_14_10663.jpg', 2), ('/home/nano/Desktop/images/06042025/12/39/image_06042025_12_40_03_9642.jpg', 2), ('/home/nano/Desktop/images/06042025/12/39/image_06042025_12_39_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fb4082c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb4082c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb4082c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 12:43:03.224389
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/12/42/image_06042025_12_42_43_9787.jpg', 2), ('/home/nano/Desktop/images/06042025/12/42/image_06042025_12_42_33_9783.jpg', 2), ('/home/nano/Desktop/images/06042025/12/42/image_06042025_12_42_24_9795.jpg', 2), ('/home/nano/Desktop/images/06042025/12/42/image_06042025_12_42_14_9813.jpg', 2), ('/home/nano/Desktop/images/06042025/12/41/image_06042025_12_42_04_10647.jpg', 2), ('/home/nano/Desktop/images/06042025/12/41/image_06042025_12_41_53_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fad50ec18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fad50ec18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fad50ec18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 12:45:31.977820
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/12/45/image_06042025_12_45_43_9642.jpg', 2), ('/home/nano/Desktop/images/06042025/12/45/image_06042025_12_45_34_9641.jpg', 2), ('/home/nano/Desktop/images/06042025/12/45/image_06042025_12_45_24_10651.jpg', 2), ('/home/nano/Desktop/images/06042025/12/44/image_06042025_12_45_04_10663.jpg', 2), ('/home/nano/Desktop/images/06042025/12/44/image_06042025_12_44_53_9640.jpg', 2), ('/home/nano/Desktop/images/06042025/12/44/image_06042025_12_44_23_9802.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa4f03c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa4f03c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa4f03c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 12:48:02.629114
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/12/47/image_06042025_12_47_43_9641.jpg', 2), ('/home/nano/Desktop/images/06042025/12/47/image_06042025_12_47_34_9641.jpg', 2), ('/home/nano/Desktop/images/06042025/12/47/image_06042025_12_47_24_10649.jpg', 2), ('/home/nano/Desktop/images/06042025/12/47/image_06042025_12_47_13_9656.jpg', 2), ('/home/nano/Desktop/images/06042025/12/46/image_06042025_12_47_04_9644.jpg', 2), ('/home/nano/Desktop/images/06042025/12/46/image_06042025_12_46_54_10653.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fadbe3c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fadbe3c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fadbe3c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 12:50:32.499228
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/12/50/image_06042025_12_50_44_9859.jpg', 2), ('/home/nano/Desktop/images/06042025/12/50/image_06042025_12_50_34_9779.jpg', 2), ('/home/nano/Desktop/images/06042025/12/50/image_06042025_12_50_24_9788.jpg', 2), ('/home/nano/Desktop/images/06042025/12/50/image_06042025_12_50_14_10818.jpg', 2), ('/home/nano/Desktop/images/06042025/12/49/image_06042025_12_50_03_9664.jpg', 2), ('/home/nano/Desktop/images/06042025/12/49/image_06042025_12_49_24_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f7fa4ec18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7fa4ec18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7fa4ec18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 12:53:02.263335
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/12/52/image_06042025_12_52_44_10750.jpg', 2), ('/home/nano/Desktop/images/06042025/12/52/image_06042025_12_52_33_9739.jpg', 2), ('/home/nano/Desktop/images/06042025/12/52/image_06042025_12_52_23_9741.jpg', 2), ('/home/nano/Desktop/images/06042025/12/52/image_06042025_12_52_14_9756.jpg', 2), ('/home/nano/Desktop/images/06042025/12/51/image_06042025_12_52_04_10768.jpg', 2), ('/home/nano/Desktop/images/06042025/12/51/image_06042025_12_51_43_9806.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f83085c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f83085c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f83085c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 12:55:31.994334
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/12/55/image_06042025_12_55_44_9733.jpg', 2), ('/home/nano/Desktop/images/06042025/12/55/image_06042025_12_55_34_10771.jpg', 2), ('/home/nano/Desktop/images/06042025/12/55/image_06042025_12_55_23_9763.jpg', 2), ('/home/nano/Desktop/images/06042025/12/55/image_06042025_12_55_13_9795.jpg', 2), ('/home/nano/Desktop/images/06042025/12/54/image_06042025_12_55_04_9771.jpg', 2), ('/home/nano/Desktop/images/06042025/12/54/image_06042025_12_54_54_9760.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9a631c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9a631c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9a631c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 12:58:02.458279
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/12/57/image_06042025_12_57_43_9794.jpg', 2), ('/home/nano/Desktop/images/06042025/12/57/image_06042025_12_57_33_9791.jpg', 2), ('/home/nano/Desktop/images/06042025/12/57/image_06042025_12_57_24_9792.jpg', 2), ('/home/nano/Desktop/images/06042025/12/57/image_06042025_12_57_14_9811.jpg', 2), ('/home/nano/Desktop/images/06042025/12/56/image_06042025_12_57_04_10811.jpg', 2), ('/home/nano/Desktop/images/06042025/12/56/image_06042025_12_56_53_9789.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fae444c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fae444c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fae444c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 13:00:31.855931
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/13/00/image_06042025_13_00_44_10643.jpg', 2), ('/home/nano/Desktop/images/06042025/13/00/image_06042025_13_00_33_9635.jpg', 2), ('/home/nano/Desktop/images/06042025/13/00/image_06042025_13_00_24_9635.jpg', 2), ('/home/nano/Desktop/images/06042025/13/00/image_06042025_13_00_14_10657.jpg', 2), ('/home/nano/Desktop/images/06042025/12/59/image_06042025_13_00_03_9647.jpg', 2), ('/home/nano/Desktop/images/06042025/12/59/image_06042025_12_59_54_10644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f955c2ba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f955c2ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f955c2ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 13:03:02.571508
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/13/02/image_06042025_13_02_44_9636.jpg', 2), ('/home/nano/Desktop/images/06042025/13/02/image_06042025_13_02_34_10649.jpg', 2), ('/home/nano/Desktop/images/06042025/13/02/image_06042025_13_02_23_9636.jpg', 2), ('/home/nano/Desktop/images/06042025/13/02/image_06042025_13_02_14_10664.jpg', 2), ('/home/nano/Desktop/images/06042025/13/01/image_06042025_13_02_03_9637.jpg', 2), ('/home/nano/Desktop/images/06042025/13/01/image_06042025_13_01_54_9632.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa4b8ac18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa4b8ac18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa4b8ac18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 13:05:32.373886
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/13/05/image_06042025_13_05_43_9777.jpg', 2), ('/home/nano/Desktop/images/06042025/13/05/image_06042025_13_05_34_9633.jpg', 2), ('/home/nano/Desktop/images/06042025/13/05/image_06042025_13_05_24_10643.jpg', 2), ('/home/nano/Desktop/images/06042025/13/05/image_06042025_13_05_13_9646.jpg', 2), ('/home/nano/Desktop/images/06042025/13/04/image_06042025_13_05_04_9652.jpg', 2), ('/home/nano/Desktop/images/06042025/13/04/image_06042025_13_04_54_10645.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8b8ddc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8b8ddc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8b8ddc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 13:08:03.060811
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/13/07/image_06042025_13_07_44_9645.jpg', 2), ('/home/nano/Desktop/images/06042025/13/07/image_06042025_13_07_34_10645.jpg', 2), ('/home/nano/Desktop/images/06042025/13/07/image_06042025_13_07_23_9636.jpg', 2), ('/home/nano/Desktop/images/06042025/13/07/image_06042025_13_07_14_9658.jpg', 2), ('/home/nano/Desktop/images/06042025/13/06/image_06042025_13_07_04_10646.jpg', 2), ('/home/nano/Desktop/images/06042025/13/06/image_06042025_13_06_53_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f7f2a7c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7f2a7c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7f2a7c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 13:10:31.853546
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/13/10/image_06042025_13_10_43_9642.jpg', 2), ('/home/nano/Desktop/images/06042025/13/10/image_06042025_13_10_34_9641.jpg', 2), ('/home/nano/Desktop/images/06042025/13/10/image_06042025_13_10_24_10649.jpg', 2), ('/home/nano/Desktop/images/06042025/13/10/image_06042025_13_10_13_9664.jpg', 2), ('/home/nano/Desktop/images/06042025/13/09/image_06042025_13_10_04_9658.jpg', 2), ('/home/nano/Desktop/images/06042025/13/09/image_06042025_13_09_54_10658.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fb3c7cc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb3c7cc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb3c7cc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 13:13:02.595024
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/13/12/image_06042025_13_12_43_9635.jpg', 2), ('/home/nano/Desktop/images/06042025/13/12/image_06042025_13_12_34_9650.jpg', 2), ('/home/nano/Desktop/images/06042025/13/12/image_06042025_13_12_24_10646.jpg', 2), ('/home/nano/Desktop/images/06042025/13/12/image_06042025_13_12_13_9650.jpg', 2), ('/home/nano/Desktop/images/06042025/13/11/image_06042025_13_12_04_9649.jpg', 2), ('/home/nano/Desktop/images/06042025/13/11/image_06042025_13_11_54_10665.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa824fc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa824fc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa824fc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 13:15:32.306031
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/13/15/image_06042025_13_15_44_9635.jpg', 2), ('/home/nano/Desktop/images/06042025/13/15/image_06042025_13_15_34_10643.jpg', 2), ('/home/nano/Desktop/images/06042025/13/15/image_06042025_13_15_23_9634.jpg', 2), ('/home/nano/Desktop/images/06042025/13/15/image_06042025_13_15_14_10661.jpg', 2), ('/home/nano/Desktop/images/06042025/13/14/image_06042025_13_15_03_9648.jpg', 2), ('/home/nano/Desktop/images/06042025/13/14/image_06042025_13_14_54_9635.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9df68c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9df68c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9df68c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 13:18:03.027021
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/13/17/image_06042025_13_17_44_9642.jpg', 2), ('/home/nano/Desktop/images/06042025/13/17/image_06042025_13_17_34_10666.jpg', 2), ('/home/nano/Desktop/images/06042025/13/17/image_06042025_13_17_23_9646.jpg', 2), ('/home/nano/Desktop/images/06042025/13/17/image_06042025_13_17_14_9657.jpg', 2), ('/home/nano/Desktop/images/06042025/13/16/image_06042025_13_17_04_10652.jpg', 2), ('/home/nano/Desktop/images/06042025/13/16/image_06042025_13_16_53_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8a2e6c50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8a2e6c50>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8a2e6c50>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 13:20:31.820489
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/13/20/image_06042025_13_20_44_9767.jpg', 2), ('/home/nano/Desktop/images/06042025/13/20/image_06042025_13_20_34_9765.jpg', 2), ('/home/nano/Desktop/images/06042025/13/20/image_06042025_13_20_24_10795.jpg', 2), ('/home/nano/Desktop/images/06042025/13/20/image_06042025_13_20_13_9783.jpg', 2), ('/home/nano/Desktop/images/06042025/13/19/image_06042025_13_20_04_9778.jpg', 2), ('/home/nano/Desktop/images/06042025/13/19/image_06042025_13_19_54_9767.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f94212c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f94212c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f94212c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 13:23:02.491517
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/13/22/image_06042025_13_22_44_10778.jpg', 2), ('/home/nano/Desktop/images/06042025/13/21/image_06042025_13_22_04_9783.jpg', 2), ('/home/nano/Desktop/images/06042025/13/21/image_06042025_13_21_54_10777.jpg', 2), ('/home/nano/Desktop/images/06042025/13/21/image_06042025_13_21_43_9768.jpg', 2), ('/home/nano/Desktop/images/06042025/13/21/image_06042025_13_21_34_9768.jpg', 2), ('/home/nano/Desktop/images/06042025/13/21/image_06042025_13_21_24_9785.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f85932c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f85932c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f85932c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 13:25:32.328839
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/13/25/image_06042025_13_25_44_9643.jpg', 2), ('/home/nano/Desktop/images/06042025/13/25/image_06042025_13_25_34_10775.jpg', 2), ('/home/nano/Desktop/images/06042025/13/25/image_06042025_13_25_23_9642.jpg', 2), ('/home/nano/Desktop/images/06042025/13/25/image_06042025_13_25_14_9660.jpg', 2), ('/home/nano/Desktop/images/06042025/13/24/image_06042025_13_25_04_10667.jpg', 2), ('/home/nano/Desktop/images/06042025/13/24/image_06042025_13_24_53_9649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa6162c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa6162c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa6162c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 13:28:02.902985
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/13/27/image_06042025_13_27_34_10643.jpg', 2), ('/home/nano/Desktop/images/06042025/13/27/image_06042025_13_27_23_9633.jpg', 2), ('/home/nano/Desktop/images/06042025/13/27/image_06042025_13_27_14_9656.jpg', 2), ('/home/nano/Desktop/images/06042025/13/26/image_06042025_13_27_04_10649.jpg', 2), ('/home/nano/Desktop/images/06042025/13/26/image_06042025_13_26_53_9712.jpg', 2), ('/home/nano/Desktop/images/06042025/13/26/image_06042025_13_26_44_9644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa0746c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa0746c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa0746c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 13:30:31.777725
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/13/30/image_06042025_13_30_43_9648.jpg', 2), ('/home/nano/Desktop/images/06042025/13/30/image_06042025_13_30_34_9636.jpg', 2), ('/home/nano/Desktop/images/06042025/13/30/image_06042025_13_30_24_10646.jpg', 2), ('/home/nano/Desktop/images/06042025/13/30/image_06042025_13_30_13_9653.jpg', 2), ('/home/nano/Desktop/images/06042025/13/29/image_06042025_13_30_04_9645.jpg', 2), ('/home/nano/Desktop/images/06042025/13/29/image_06042025_13_29_54_10646.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8c1eac18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8c1eac18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8c1eac18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 13:33:02.413053
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/13/32/image_06042025_13_32_33_9645.jpg', 2), ('/home/nano/Desktop/images/06042025/13/32/image_06042025_13_32_24_9643.jpg', 2), ('/home/nano/Desktop/images/06042025/13/32/image_06042025_13_32_14_10668.jpg', 2), ('/home/nano/Desktop/images/06042025/13/31/image_06042025_13_32_03_9651.jpg', 2), ('/home/nano/Desktop/images/06042025/13/31/image_06042025_13_31_54_9642.jpg', 2), ('/home/nano/Desktop/images/06042025/13/31/image_06042025_13_31_44_10651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f77689c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f77689c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f77689c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 13:35:32.306707
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/13/35/image_06042025_13_35_34_10652.jpg', 2), ('/home/nano/Desktop/images/06042025/13/35/image_06042025_13_35_23_9661.jpg', 2), ('/home/nano/Desktop/images/06042025/13/34/image_06042025_13_35_03_9646.jpg', 2), ('/home/nano/Desktop/images/06042025/13/34/image_06042025_13_34_54_9644.jpg', 2), ('/home/nano/Desktop/images/06042025/13/34/image_06042025_13_34_44_10654.jpg', 2), ('/home/nano/Desktop/images/06042025/13/34/image_06042025_13_34_33_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa8bbac18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa8bbac18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa8bbac18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 13:38:02.889724
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/13/37/image_06042025_13_37_44_9640.jpg', 2), ('/home/nano/Desktop/images/06042025/13/37/image_06042025_13_37_34_10654.jpg', 2), ('/home/nano/Desktop/images/06042025/13/37/image_06042025_13_37_23_9645.jpg', 2), ('/home/nano/Desktop/images/06042025/13/37/image_06042025_13_37_14_9670.jpg', 2), ('/home/nano/Desktop/images/06042025/13/36/image_06042025_13_37_04_10680.jpg', 2), ('/home/nano/Desktop/images/06042025/13/36/image_06042025_13_36_53_9644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f7d029c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7d029c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7d029c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 13:40:31.794325
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/13/40/image_06042025_13_40_43_9627.jpg', 2), ('/home/nano/Desktop/images/06042025/13/40/image_06042025_13_40_24_10639.jpg', 2), ('/home/nano/Desktop/images/06042025/13/40/image_06042025_13_40_13_9643.jpg', 2), ('/home/nano/Desktop/images/06042025/13/39/image_06042025_13_40_04_9646.jpg', 2), ('/home/nano/Desktop/images/06042025/13/39/image_06042025_13_39_54_10634.jpg', 2), ('/home/nano/Desktop/images/06042025/13/39/image_06042025_13_39_44_9645.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fb3ba9c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb3ba9c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb3ba9c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 13:43:02.564433
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/13/42/image_06042025_13_42_44_9766.jpg', 2), ('/home/nano/Desktop/images/06042025/13/42/image_06042025_13_42_34_10755.jpg', 2), ('/home/nano/Desktop/images/06042025/13/42/image_06042025_13_42_23_9761.jpg', 2), ('/home/nano/Desktop/images/06042025/13/42/image_06042025_13_42_14_9787.jpg', 2), ('/home/nano/Desktop/images/06042025/13/41/image_06042025_13_42_04_9747.jpg', 2), ('/home/nano/Desktop/images/06042025/13/41/image_06042025_13_41_54_10752.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fae5a5c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fae5a5c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fae5a5c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 13:45:32.284777
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/13/45/image_06042025_13_45_23_9640.jpg', 2), ('/home/nano/Desktop/images/06042025/13/45/image_06042025_13_45_14_9656.jpg', 2), ('/home/nano/Desktop/images/06042025/13/44/image_06042025_13_45_04_10662.jpg', 2), ('/home/nano/Desktop/images/06042025/13/44/image_06042025_13_44_53_9638.jpg', 2), ('/home/nano/Desktop/images/06042025/13/44/image_06042025_13_44_44_9638.jpg', 2), ('/home/nano/Desktop/images/06042025/13/44/image_06042025_13_44_34_10647.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f85f2fc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f85f2fc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f85f2fc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 13:48:02.897770
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/13/47/image_06042025_13_47_43_9658.jpg', 2), ('/home/nano/Desktop/images/06042025/13/47/image_06042025_13_47_34_9640.jpg', 2), ('/home/nano/Desktop/images/06042025/13/47/image_06042025_13_47_24_10652.jpg', 2), ('/home/nano/Desktop/images/06042025/13/47/image_06042025_13_47_13_9659.jpg', 2), ('/home/nano/Desktop/images/06042025/13/46/image_06042025_13_47_04_9666.jpg', 2), ('/home/nano/Desktop/images/06042025/13/46/image_06042025_13_46_54_10650.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f910d4c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f910d4c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f910d4c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 13:50:31.778119
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/13/50/image_06042025_13_50_33_9639.jpg', 2), ('/home/nano/Desktop/images/06042025/13/50/image_06042025_13_50_13_9653.jpg', 2), ('/home/nano/Desktop/images/06042025/13/49/image_06042025_13_50_04_9665.jpg', 2), ('/home/nano/Desktop/images/06042025/13/49/image_06042025_13_49_54_10666.jpg', 2), ('/home/nano/Desktop/images/06042025/13/49/image_06042025_13_49_43_9639.jpg', 2), ('/home/nano/Desktop/images/06042025/13/49/image_06042025_13_49_34_9654.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f87b77c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f87b77c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f87b77c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 13:53:02.397321
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/13/52/image_06042025_13_52_24_9635.jpg', 2), ('/home/nano/Desktop/images/06042025/13/52/image_06042025_13_52_14_10662.jpg', 2), ('/home/nano/Desktop/images/06042025/13/51/image_06042025_13_52_03_9640.jpg', 2), ('/home/nano/Desktop/images/06042025/13/51/image_06042025_13_51_44_10658.jpg', 2), ('/home/nano/Desktop/images/06042025/13/51/image_06042025_13_51_14_10666.jpg', 2), ('/home/nano/Desktop/images/06042025/13/50/image_06042025_13_51_03_9637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f958d9ba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f958d9ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f958d9ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 13:55:32.264969
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/13/55/image_06042025_13_55_44_9658.jpg', 2), ('/home/nano/Desktop/images/06042025/13/55/image_06042025_13_55_34_10648.jpg', 2), ('/home/nano/Desktop/images/06042025/13/55/image_06042025_13_55_23_9640.jpg', 2), ('/home/nano/Desktop/images/06042025/13/54/image_06042025_13_54_53_9637.jpg', 2), ('/home/nano/Desktop/images/06042025/13/54/image_06042025_13_54_44_9637.jpg', 2), ('/home/nano/Desktop/images/06042025/13/54/image_06042025_13_54_34_10645.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8169dc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8169dc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8169dc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 13:59:02.968757
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/13/58/image_06042025_13_58_34_9643.jpg', 2), ('/home/nano/Desktop/images/06042025/13/57/image_06042025_13_57_54_10648.jpg', 2), ('/home/nano/Desktop/images/06042025/13/57/image_06042025_13_57_43_9636.jpg', 2), ('/home/nano/Desktop/images/06042025/13/57/image_06042025_13_57_34_9637.jpg', 2), ('/home/nano/Desktop/images/06042025/13/57/image_06042025_13_57_24_10664.jpg', 2), ('/home/nano/Desktop/images/06042025/13/57/image_06042025_13_57_13_9652.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fb355ac18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb355ac18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb355ac18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 14:01:32.281080
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/14/01/image_06042025_14_01_44_9778.jpg', 2), ('/home/nano/Desktop/images/06042025/14/01/image_06042025_14_01_34_9778.jpg', 2), ('/home/nano/Desktop/images/06042025/14/01/image_06042025_14_01_24_10786.jpg', 2), ('/home/nano/Desktop/images/06042025/14/01/image_06042025_14_01_13_9798.jpg', 2), ('/home/nano/Desktop/images/06042025/14/00/image_06042025_14_01_04_9783.jpg', 2), ('/home/nano/Desktop/images/06042025/14/00/image_06042025_14_00_54_9778.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa4049c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa4049c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa4049c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 14:04:03.015775
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/14/03/image_06042025_14_03_43_9784.jpg', 2), ('/home/nano/Desktop/images/06042025/14/03/image_06042025_14_03_33_9781.jpg', 2), ('/home/nano/Desktop/images/06042025/14/03/image_06042025_14_03_24_9788.jpg', 2), ('/home/nano/Desktop/images/06042025/14/03/image_06042025_14_03_14_9805.jpg', 2), ('/home/nano/Desktop/images/06042025/14/02/image_06042025_14_03_04_10797.jpg', 2), ('/home/nano/Desktop/images/06042025/14/02/image_06042025_14_02_53_9801.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f7c679c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7c679c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7c679c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 14:06:31.757836
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/14/06/image_06042025_14_06_34_9646.jpg', 2), ('/home/nano/Desktop/images/06042025/14/06/image_06042025_14_06_24_10655.jpg', 2), ('/home/nano/Desktop/images/06042025/14/06/image_06042025_14_06_13_9681.jpg', 2), ('/home/nano/Desktop/images/06042025/14/05/image_06042025_14_06_04_9662.jpg', 2), ('/home/nano/Desktop/images/06042025/14/05/image_06042025_14_05_54_10656.jpg', 2), ('/home/nano/Desktop/images/06042025/14/05/image_06042025_14_05_43_9647.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fb10d6ba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb10d6ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb10d6ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 14:09:02.632773
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/14/08/image_06042025_14_08_24_10654.jpg', 2), ('/home/nano/Desktop/images/06042025/14/08/image_06042025_14_08_13_9657.jpg', 2), ('/home/nano/Desktop/images/06042025/14/07/image_06042025_14_08_04_9643.jpg', 2), ('/home/nano/Desktop/images/06042025/14/07/image_06042025_14_07_54_10654.jpg', 2), ('/home/nano/Desktop/images/06042025/14/07/image_06042025_14_07_43_9661.jpg', 2), ('/home/nano/Desktop/images/06042025/14/07/image_06042025_14_07_34_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f79444c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f79444c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f79444c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 14:11:32.323479
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/14/11/image_06042025_14_11_44_10651.jpg', 2), ('/home/nano/Desktop/images/06042025/14/11/image_06042025_14_11_33_9640.jpg', 2), ('/home/nano/Desktop/images/06042025/14/11/image_06042025_14_11_24_9640.jpg', 2), ('/home/nano/Desktop/images/06042025/14/11/image_06042025_14_11_14_10672.jpg', 2), ('/home/nano/Desktop/images/06042025/14/10/image_06042025_14_11_03_9643.jpg', 2), ('/home/nano/Desktop/images/06042025/14/10/image_06042025_14_10_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa0e00c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa0e00c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa0e00c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 14:14:03.225916
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/14/13/image_06042025_14_13_44_9641.jpg', 2), ('/home/nano/Desktop/images/06042025/14/13/image_06042025_14_13_34_10652.jpg', 2), ('/home/nano/Desktop/images/06042025/14/13/image_06042025_14_13_23_9659.jpg', 2), ('/home/nano/Desktop/images/06042025/14/13/image_06042025_14_13_14_9660.jpg', 2), ('/home/nano/Desktop/images/06042025/14/12/image_06042025_14_13_04_10678.jpg', 2), ('/home/nano/Desktop/images/06042025/14/12/image_06042025_14_12_53_9659.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa6ee9ba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa6ee9ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa6ee9ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 14:16:31.830625
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/14/16/image_06042025_14_16_43_9780.jpg', 2), ('/home/nano/Desktop/images/06042025/14/16/image_06042025_14_16_34_9781.jpg', 2), ('/home/nano/Desktop/images/06042025/14/16/image_06042025_14_16_24_9788.jpg', 2), ('/home/nano/Desktop/images/06042025/14/16/image_06042025_14_16_14_10806.jpg', 2), ('/home/nano/Desktop/images/06042025/14/15/image_06042025_14_16_03_9791.jpg', 2), ('/home/nano/Desktop/images/06042025/14/15/image_06042025_14_15_54_9776.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f824d8c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f824d8c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f824d8c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 14:19:02.874342
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/14/18/image_06042025_14_18_44_9782.jpg', 2), ('/home/nano/Desktop/images/06042025/14/18/image_06042025_14_18_34_10785.jpg', 2), ('/home/nano/Desktop/images/06042025/14/18/image_06042025_14_18_23_9777.jpg', 2), ('/home/nano/Desktop/images/06042025/14/18/image_06042025_14_18_14_9800.jpg', 2), ('/home/nano/Desktop/images/06042025/14/17/image_06042025_14_18_04_9789.jpg', 2), ('/home/nano/Desktop/images/06042025/14/17/image_06042025_14_17_54_10784.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8abbec18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8abbec18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8abbec18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 14:21:32.299559
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/14/21/image_06042025_14_21_44_10792.jpg', 2), ('/home/nano/Desktop/images/06042025/14/21/image_06042025_14_21_33_9784.jpg', 2), ('/home/nano/Desktop/images/06042025/14/21/image_06042025_14_21_24_9782.jpg', 2), ('/home/nano/Desktop/images/06042025/14/21/image_06042025_14_21_14_9832.jpg', 2), ('/home/nano/Desktop/images/06042025/14/20/image_06042025_14_21_04_9788.jpg', 2), ('/home/nano/Desktop/images/06042025/14/20/image_06042025_14_20_54_10790.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9cf70c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9cf70c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9cf70c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 14:24:03.003841
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/14/23/image_06042025_14_23_24_10782.jpg', 2), ('/home/nano/Desktop/images/06042025/14/23/image_06042025_14_23_13_9799.jpg', 2), ('/home/nano/Desktop/images/06042025/14/22/image_06042025_14_23_03_9779.jpg', 2), ('/home/nano/Desktop/images/06042025/14/22/image_06042025_14_22_54_9783.jpg', 2), ('/home/nano/Desktop/images/06042025/14/22/image_06042025_14_22_44_9780.jpg', 2), ('/home/nano/Desktop/images/06042025/14/22/image_06042025_14_22_34_10793.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f773aac18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f773aac18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f773aac18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 14:26:31.769361
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/14/26/image_06042025_14_26_44_9809.jpg', 2), ('/home/nano/Desktop/images/06042025/14/26/image_06042025_14_26_23_9811.jpg', 2), ('/home/nano/Desktop/images/06042025/14/26/image_06042025_14_26_13_9832.jpg', 2), ('/home/nano/Desktop/images/06042025/14/25/image_06042025_14_26_04_9817.jpg', 2), ('/home/nano/Desktop/images/06042025/14/25/image_06042025_14_25_54_9645.jpg', 2), ('/home/nano/Desktop/images/06042025/14/25/image_06042025_14_25_44_10776.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa5ba6ba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa5ba6ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa5ba6ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 14:29:02.939433
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/14/28/image_06042025_14_28_44_10748.jpg', 2), ('/home/nano/Desktop/images/06042025/14/28/image_06042025_14_28_33_9758.jpg', 2), ('/home/nano/Desktop/images/06042025/14/28/image_06042025_14_28_23_9761.jpg', 2), ('/home/nano/Desktop/images/06042025/14/28/image_06042025_14_28_14_9805.jpg', 2), ('/home/nano/Desktop/images/06042025/14/27/image_06042025_14_28_04_9766.jpg', 2), ('/home/nano/Desktop/images/06042025/14/27/image_06042025_14_27_34_9757.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f922eac18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f922eac18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f922eac18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 14:31:32.321561
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/14/31/image_06042025_14_31_44_9643.jpg', 2), ('/home/nano/Desktop/images/06042025/14/31/image_06042025_14_31_34_10654.jpg', 2), ('/home/nano/Desktop/images/06042025/14/31/image_06042025_14_31_23_9642.jpg', 2), ('/home/nano/Desktop/images/06042025/14/31/image_06042025_14_31_14_9666.jpg', 2), ('/home/nano/Desktop/images/06042025/14/30/image_06042025_14_31_04_10667.jpg', 2), ('/home/nano/Desktop/images/06042025/14/30/image_06042025_14_30_53_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9ecd6c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9ecd6c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9ecd6c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 14:34:03.241016
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/14/33/image_06042025_14_33_44_9805.jpg', 2), ('/home/nano/Desktop/images/06042025/14/33/image_06042025_14_33_34_10816.jpg', 2), ('/home/nano/Desktop/images/06042025/14/33/image_06042025_14_33_23_9638.jpg', 2), ('/home/nano/Desktop/images/06042025/14/32/image_06042025_14_33_04_10656.jpg', 2), ('/home/nano/Desktop/images/06042025/14/32/image_06042025_14_32_53_9642.jpg', 2), ('/home/nano/Desktop/images/06042025/14/32/image_06042025_14_32_44_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fb31f5ba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb31f5ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb31f5ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 14:36:31.780591
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/14/36/image_06042025_14_36_43_9764.jpg', 2), ('/home/nano/Desktop/images/06042025/14/36/image_06042025_14_36_33_9769.jpg', 2), ('/home/nano/Desktop/images/06042025/14/36/image_06042025_14_36_24_9769.jpg', 2), ('/home/nano/Desktop/images/06042025/14/36/image_06042025_14_36_14_9785.jpg', 2), ('/home/nano/Desktop/images/06042025/14/35/image_06042025_14_36_04_10782.jpg', 2), ('/home/nano/Desktop/images/06042025/14/35/image_06042025_14_35_53_9771.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8271bc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8271bc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8271bc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 14:39:02.943647
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/14/38/image_06042025_14_38_34_9768.jpg', 2), ('/home/nano/Desktop/images/06042025/14/37/image_06042025_14_37_54_9769.jpg', 2), ('/home/nano/Desktop/images/06042025/14/37/image_06042025_14_37_44_9766.jpg', 2), ('/home/nano/Desktop/images/06042025/14/37/image_06042025_14_37_34_10774.jpg', 2), ('/home/nano/Desktop/images/06042025/14/37/image_06042025_14_37_23_9770.jpg', 2), ('/home/nano/Desktop/images/06042025/14/37/image_06042025_14_37_14_9788.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8862ec18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8862ec18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8862ec18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 14:41:32.272328
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/14/41/image_06042025_14_41_43_9647.jpg', 2), ('/home/nano/Desktop/images/06042025/14/41/image_06042025_14_41_34_9646.jpg', 2), ('/home/nano/Desktop/images/06042025/14/41/image_06042025_14_41_24_10657.jpg', 2), ('/home/nano/Desktop/images/06042025/14/41/image_06042025_14_41_13_9661.jpg', 2), ('/home/nano/Desktop/images/06042025/14/40/image_06042025_14_41_04_9651.jpg', 2), ('/home/nano/Desktop/images/06042025/14/40/image_06042025_14_40_54_10655.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa3472c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa3472c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa3472c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 14:44:03.371348
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/14/44/image_06042025_14_44_44_10665.jpg', 2), ('/home/nano/Desktop/images/06042025/14/43/image_06042025_14_43_43_9781.jpg', 2), ('/home/nano/Desktop/images/06042025/14/43/image_06042025_14_43_34_9780.jpg', 2), ('/home/nano/Desktop/images/06042025/14/43/image_06042025_14_43_24_9783.jpg', 2), ('/home/nano/Desktop/images/06042025/14/43/image_06042025_14_43_14_9809.jpg', 2), ('/home/nano/Desktop/images/06042025/14/42/image_06042025_14_43_04_10793.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f935c1c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f935c1c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f935c1c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 14:46:31.891532
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/14/46/image_06042025_14_46_44_9641.jpg', 2), ('/home/nano/Desktop/images/06042025/14/46/image_06042025_14_46_34_10652.jpg', 2), ('/home/nano/Desktop/images/06042025/14/46/image_06042025_14_46_23_9643.jpg', 2), ('/home/nano/Desktop/images/06042025/14/46/image_06042025_14_46_14_9659.jpg', 2), ('/home/nano/Desktop/images/06042025/14/45/image_06042025_14_46_04_10664.jpg', 2), ('/home/nano/Desktop/images/06042025/14/45/image_06042025_14_45_53_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa4ef5ba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa4ef5ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa4ef5ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 14:49:03.108636
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/14/48/image_06042025_14_48_34_10651.jpg', 2), ('/home/nano/Desktop/images/06042025/14/48/image_06042025_14_48_23_9640.jpg', 2), ('/home/nano/Desktop/images/06042025/14/48/image_06042025_14_48_14_9687.jpg', 2), ('/home/nano/Desktop/images/06042025/14/47/image_06042025_14_48_04_10665.jpg', 2), ('/home/nano/Desktop/images/06042025/14/47/image_06042025_14_47_53_9642.jpg', 2), ('/home/nano/Desktop/images/06042025/14/47/image_06042025_14_47_44_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fb5fc8c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb5fc8c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb5fc8c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 14:51:32.445209
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/14/50/image_06042025_14_51_04_9643.jpg', 2), ('/home/nano/Desktop/images/06042025/14/50/image_06042025_14_50_43_9639.jpg', 2), ('/home/nano/Desktop/images/06042025/14/50/image_06042025_14_50_34_9639.jpg', 2), ('/home/nano/Desktop/images/06042025/14/50/image_06042025_14_50_24_10647.jpg', 2), ('/home/nano/Desktop/images/06042025/14/50/image_06042025_14_50_13_9656.jpg', 2), ('/home/nano/Desktop/images/06042025/14/49/image_06042025_14_49_34_10647.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f90215ba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f90215ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f90215ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 14:54:02.234042
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/14/53/image_06042025_14_53_54_9636.jpg', 2), ('/home/nano/Desktop/images/06042025/14/53/image_06042025_14_53_33_9636.jpg', 2), ('/home/nano/Desktop/images/06042025/14/53/image_06042025_14_53_24_9637.jpg', 2), ('/home/nano/Desktop/images/06042025/14/53/image_06042025_14_53_14_10662.jpg', 2), ('/home/nano/Desktop/images/06042025/14/52/image_06042025_14_53_03_9648.jpg', 2), ('/home/nano/Desktop/images/06042025/14/52/image_06042025_14_52_54_9634.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa7f23ba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa7f23ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa7f23ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 14:56:31.998741
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 14:59:03.485547
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/14/57/image_06042025_14_57_44_9638.jpg', 2), ('/home/nano/Desktop/images/06042025/14/57/image_06042025_14_57_23_9645.jpg', 2), ('/home/nano/Desktop/images/06042025/14/57/image_06042025_14_57_14_9663.jpg', 2), ('/home/nano/Desktop/images/06042025/14/56/image_06042025_14_57_04_10656.jpg', 2), ('/home/nano/Desktop/images/06042025/14/56/image_06042025_14_56_53_9643.jpg', 2), ('/home/nano/Desktop/images/06042025/14/56/image_06042025_14_56_44_9635.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8d7dbc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8d7dbc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8d7dbc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 15:01:32.696396
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/15/01/image_06042025_15_01_43_9640.jpg', 2), ('/home/nano/Desktop/images/06042025/15/01/image_06042025_15_01_34_9661.jpg', 2), ('/home/nano/Desktop/images/06042025/15/00/image_06042025_15_00_43_9640.jpg', 2), ('/home/nano/Desktop/images/06042025/15/00/image_06042025_15_00_34_9640.jpg', 2), ('/home/nano/Desktop/images/06042025/15/00/image_06042025_15_00_24_10649.jpg', 2), ('/home/nano/Desktop/images/06042025/15/00/image_06042025_15_00_13_9675.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f813bac18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f813bac18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f813bac18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 15:04:02.708813
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/15/03/image_06042025_15_03_24_9640.jpg', 2), ('/home/nano/Desktop/images/06042025/15/03/image_06042025_15_03_14_10668.jpg', 2), ('/home/nano/Desktop/images/06042025/15/02/image_06042025_15_03_03_9643.jpg', 2), ('/home/nano/Desktop/images/06042025/15/02/image_06042025_15_02_44_10652.jpg', 2), ('/home/nano/Desktop/images/06042025/15/02/image_06042025_15_02_33_9640.jpg', 2), ('/home/nano/Desktop/images/06042025/15/02/image_06042025_15_02_24_10657.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9a6ccc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9a6ccc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9a6ccc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 15:06:32.196622
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/15/05/image_06042025_15_06_04_10667.jpg', 2), ('/home/nano/Desktop/images/06042025/15/05/image_06042025_15_05_53_9640.jpg', 2), ('/home/nano/Desktop/images/06042025/15/05/image_06042025_15_05_33_9641.jpg', 2), ('/home/nano/Desktop/images/06042025/15/05/image_06042025_15_05_24_9641.jpg', 2), ('/home/nano/Desktop/images/06042025/15/05/image_06042025_15_05_14_10667.jpg', 2), ('/home/nano/Desktop/images/06042025/15/04/image_06042025_15_05_03_9664.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f80b73c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f80b73c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f80b73c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 15:09:03.661316
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/15/08/image_06042025_15_08_44_10649.jpg', 2), ('/home/nano/Desktop/images/06042025/15/08/image_06042025_15_08_24_9650.jpg', 2), ('/home/nano/Desktop/images/06042025/15/08/image_06042025_15_08_14_10669.jpg', 2), ('/home/nano/Desktop/images/06042025/15/07/image_06042025_15_07_44_10645.jpg', 2), ('/home/nano/Desktop/images/06042025/15/07/image_06042025_15_07_33_9807.jpg', 2), ('/home/nano/Desktop/images/06042025/15/07/image_06042025_15_07_23_9808.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f77899ba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f77899ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f77899ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 15:11:32.750970
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/15/11/image_06042025_15_11_44_9643.jpg', 2), ('/home/nano/Desktop/images/06042025/15/11/image_06042025_15_11_34_10652.jpg', 2), ('/home/nano/Desktop/images/06042025/15/10/image_06042025_15_11_04_10666.jpg', 2), ('/home/nano/Desktop/images/06042025/15/10/image_06042025_15_10_53_9643.jpg', 2), ('/home/nano/Desktop/images/06042025/15/10/image_06042025_15_10_44_9644.jpg', 2), ('/home/nano/Desktop/images/06042025/15/10/image_06042025_15_10_34_10653.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9b5ecc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9b5ecc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9b5ecc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 15:14:02.986100
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/15/13/image_06042025_15_13_44_9644.jpg', 2), ('/home/nano/Desktop/images/06042025/15/13/image_06042025_15_13_34_10657.jpg', 2), ('/home/nano/Desktop/images/06042025/15/13/image_06042025_15_13_23_9642.jpg', 2), ('/home/nano/Desktop/images/06042025/15/13/image_06042025_15_13_14_9664.jpg', 2), ('/home/nano/Desktop/images/06042025/15/12/image_06042025_15_13_04_10688.jpg', 2), ('/home/nano/Desktop/images/06042025/15/12/image_06042025_15_12_53_9661.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fae4fbc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fae4fbc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fae4fbc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 15:16:32.298113
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/15/16/image_06042025_15_16_43_9642.jpg', 2), ('/home/nano/Desktop/images/06042025/15/16/image_06042025_15_16_34_9640.jpg', 2), ('/home/nano/Desktop/images/06042025/15/16/image_06042025_15_16_24_10651.jpg', 2), ('/home/nano/Desktop/images/06042025/15/16/image_06042025_15_16_13_9654.jpg', 2), ('/home/nano/Desktop/images/06042025/15/15/image_06042025_15_16_04_9646.jpg', 2), ('/home/nano/Desktop/images/06042025/15/14/image_06042025_15_15_04_9654.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f7dc08c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7dc08c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7dc08c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 15:19:03.507307
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/15/18/image_06042025_15_18_44_10657.jpg', 2), ('/home/nano/Desktop/images/06042025/15/18/image_06042025_15_18_33_9647.jpg', 2), ('/home/nano/Desktop/images/06042025/15/17/image_06042025_15_18_03_9670.jpg', 2), ('/home/nano/Desktop/images/06042025/15/17/image_06042025_15_17_54_10653.jpg', 2), ('/home/nano/Desktop/images/06042025/15/17/image_06042025_15_17_43_9642.jpg', 2), ('/home/nano/Desktop/images/06042025/15/17/image_06042025_15_17_34_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f91256c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f91256c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f91256c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 15:21:31.814402
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/15/21/image_06042025_15_21_33_9643.jpg', 2), ('/home/nano/Desktop/images/06042025/15/21/image_06042025_15_21_24_9643.jpg', 2), ('/home/nano/Desktop/images/06042025/15/21/image_06042025_15_21_14_10669.jpg', 2), ('/home/nano/Desktop/images/06042025/15/20/image_06042025_15_21_03_9638.jpg', 2), ('/home/nano/Desktop/images/06042025/15/20/image_06042025_15_20_54_9643.jpg', 2), ('/home/nano/Desktop/images/06042025/15/20/image_06042025_15_20_33_9642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f7c607ba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7c607ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7c607ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 15:24:02.782138
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/15/23/image_06042025_15_23_44_9643.jpg', 2), ('/home/nano/Desktop/images/06042025/15/23/image_06042025_15_23_34_10653.jpg', 2), ('/home/nano/Desktop/images/06042025/15/23/image_06042025_15_23_23_9659.jpg', 2), ('/home/nano/Desktop/images/06042025/15/23/image_06042025_15_23_14_9665.jpg', 2), ('/home/nano/Desktop/images/06042025/15/22/image_06042025_15_23_04_10656.jpg', 2), ('/home/nano/Desktop/images/06042025/15/22/image_06042025_15_22_44_9642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f98387c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f98387c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f98387c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 15:26:32.337548
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/15/26/image_06042025_15_26_43_9651.jpg', 2), ('/home/nano/Desktop/images/06042025/15/26/image_06042025_15_26_34_9662.jpg', 2), ('/home/nano/Desktop/images/06042025/15/26/image_06042025_15_26_24_10654.jpg', 2), ('/home/nano/Desktop/images/06042025/15/26/image_06042025_15_26_13_9661.jpg', 2), ('/home/nano/Desktop/images/06042025/15/25/image_06042025_15_26_04_10655.jpg', 2), ('/home/nano/Desktop/images/06042025/15/25/image_06042025_15_25_53_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fb0f41ba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb0f41ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb0f41ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 15:29:03.660948
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/15/28/image_06042025_15_28_34_9646.jpg', 2), ('/home/nano/Desktop/images/06042025/15/28/image_06042025_15_28_24_10655.jpg', 2), ('/home/nano/Desktop/images/06042025/15/28/image_06042025_15_28_13_9664.jpg', 2), ('/home/nano/Desktop/images/06042025/15/27/image_06042025_15_28_04_9649.jpg', 2), ('/home/nano/Desktop/images/06042025/15/27/image_06042025_15_27_54_10654.jpg', 2), ('/home/nano/Desktop/images/06042025/15/27/image_06042025_15_27_43_9662.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa528cc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa528cc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa528cc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 15:31:31.893921
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/15/31/image_06042025_15_31_44_10673.jpg', 2), ('/home/nano/Desktop/images/06042025/15/31/image_06042025_15_31_33_9663.jpg', 2), ('/home/nano/Desktop/images/06042025/15/31/image_06042025_15_31_24_9663.jpg', 2), ('/home/nano/Desktop/images/06042025/15/31/image_06042025_15_31_14_10691.jpg', 2), ('/home/nano/Desktop/images/06042025/15/30/image_06042025_15_31_03_9646.jpg', 2), ('/home/nano/Desktop/images/06042025/15/30/image_06042025_15_30_54_9645.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f7935ac18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7935ac18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7935ac18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 15:34:03.019005
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/15/33/image_06042025_15_33_44_10655.jpg', 2), ('/home/nano/Desktop/images/06042025/15/33/image_06042025_15_33_24_9665.jpg', 2), ('/home/nano/Desktop/images/06042025/15/33/image_06042025_15_33_14_10672.jpg', 2), ('/home/nano/Desktop/images/06042025/15/32/image_06042025_15_33_03_9661.jpg', 2), ('/home/nano/Desktop/images/06042025/15/32/image_06042025_15_32_54_9645.jpg', 2), ('/home/nano/Desktop/images/06042025/15/32/image_06042025_15_32_44_10656.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f81fedc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f81fedc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f81fedc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 15:36:32.388752
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/15/36/image_06042025_15_36_44_9650.jpg', 2), ('/home/nano/Desktop/images/06042025/15/36/image_06042025_15_36_34_10655.jpg', 2), ('/home/nano/Desktop/images/06042025/15/36/image_06042025_15_36_14_9659.jpg', 2), ('/home/nano/Desktop/images/06042025/15/35/image_06042025_15_35_53_9648.jpg', 2), ('/home/nano/Desktop/images/06042025/15/35/image_06042025_15_35_44_10655.jpg', 2), ('/home/nano/Desktop/images/06042025/15/35/image_06042025_15_35_33_9647.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7faf545c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7faf545c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7faf545c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 15:39:03.854175
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/15/38/image_06042025_15_38_44_9651.jpg', 2), ('/home/nano/Desktop/images/06042025/15/38/image_06042025_15_38_34_10661.jpg', 2), ('/home/nano/Desktop/images/06042025/15/38/image_06042025_15_38_23_9653.jpg', 2), ('/home/nano/Desktop/images/06042025/15/38/image_06042025_15_38_14_9666.jpg', 2), ('/home/nano/Desktop/images/06042025/15/37/image_06042025_15_38_04_10656.jpg', 2), ('/home/nano/Desktop/images/06042025/15/37/image_06042025_15_37_53_9652.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f7d2a2c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7d2a2c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7d2a2c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 15:41:31.979149
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/15/41/image_06042025_15_41_44_9810.jpg', 2), ('/home/nano/Desktop/images/06042025/15/41/image_06042025_15_41_34_10817.jpg', 2), ('/home/nano/Desktop/images/06042025/15/41/image_06042025_15_41_23_9648.jpg', 2), ('/home/nano/Desktop/images/06042025/15/41/image_06042025_15_41_14_9673.jpg', 2), ('/home/nano/Desktop/images/06042025/15/40/image_06042025_15_41_04_10681.jpg', 2), ('/home/nano/Desktop/images/06042025/15/40/image_06042025_15_40_53_9651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f98b1cc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f98b1cc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f98b1cc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 15:44:03.309955
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/15/43/image_06042025_15_43_44_9786.jpg', 2), ('/home/nano/Desktop/images/06042025/15/43/image_06042025_15_43_24_9809.jpg', 2), ('/home/nano/Desktop/images/06042025/15/43/image_06042025_15_43_14_10843.jpg', 2), ('/home/nano/Desktop/images/06042025/15/42/image_06042025_15_43_03_9790.jpg', 2), ('/home/nano/Desktop/images/06042025/15/42/image_06042025_15_42_53_9788.jpg', 2), ('/home/nano/Desktop/images/06042025/15/42/image_06042025_15_42_44_9809.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f808f6c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f808f6c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f808f6c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 15:46:32.524018
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/15/46/image_06042025_15_46_44_9636.jpg', 2), ('/home/nano/Desktop/images/06042025/15/46/image_06042025_15_46_34_10646.jpg', 2), ('/home/nano/Desktop/images/06042025/15/46/image_06042025_15_46_23_9791.jpg', 2), ('/home/nano/Desktop/images/06042025/15/46/image_06042025_15_46_14_9809.jpg', 2), ('/home/nano/Desktop/images/06042025/15/45/image_06042025_15_45_54_9789.jpg', 2), ('/home/nano/Desktop/images/06042025/15/45/image_06042025_15_45_44_10798.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f77f5ec18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f77f5ec18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f77f5ec18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 15:49:02.941321
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/15/48/image_06042025_15_48_34_9634.jpg', 2), ('/home/nano/Desktop/images/06042025/15/48/image_06042025_15_48_24_10645.jpg', 2), ('/home/nano/Desktop/images/06042025/15/48/image_06042025_15_48_13_9655.jpg', 2), ('/home/nano/Desktop/images/06042025/15/47/image_06042025_15_48_04_9639.jpg', 2), ('/home/nano/Desktop/images/06042025/15/47/image_06042025_15_47_54_10643.jpg', 2), ('/home/nano/Desktop/images/06042025/15/47/image_06042025_15_47_43_9653.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa37dfba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa37dfba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa37dfba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 15:51:32.180239
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/15/51/image_06042025_15_51_44_10662.jpg', 2), ('/home/nano/Desktop/images/06042025/15/51/image_06042025_15_51_33_9653.jpg', 2), ('/home/nano/Desktop/images/06042025/15/50/image_06042025_15_51_03_9662.jpg', 2), ('/home/nano/Desktop/images/06042025/15/50/image_06042025_15_50_54_9634.jpg', 2), ('/home/nano/Desktop/images/06042025/15/50/image_06042025_15_50_44_10645.jpg', 2), ('/home/nano/Desktop/images/06042025/15/50/image_06042025_15_50_33_9637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9401bba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9401bba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9401bba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 15:54:03.343971
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/15/53/image_06042025_15_53_33_9654.jpg', 2), ('/home/nano/Desktop/images/06042025/15/53/image_06042025_15_53_14_10677.jpg', 2), ('/home/nano/Desktop/images/06042025/15/52/image_06042025_15_53_03_9659.jpg', 2), ('/home/nano/Desktop/images/06042025/15/52/image_06042025_15_52_54_9652.jpg', 2), ('/home/nano/Desktop/images/06042025/15/52/image_06042025_15_52_33_9653.jpg', 2), ('/home/nano/Desktop/images/06042025/15/52/image_06042025_15_52_24_9657.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fafe6ac18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fafe6ac18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fafe6ac18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 15:56:32.700767
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 15:58:02.483283
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/15/57/image_06042025_15_57_44_10777.jpg', 2), ('/home/nano/Desktop/images/06042025/15/57/image_06042025_15_57_33_9768.jpg', 2), ('/home/nano/Desktop/images/06042025/15/57/image_06042025_15_57_24_9672.jpg', 2), ('/home/nano/Desktop/images/06042025/15/57/image_06042025_15_57_14_10702.jpg', 2), ('/home/nano/Desktop/images/06042025/15/56/image_06042025_15_57_03_9655.jpg', 2), ('/home/nano/Desktop/images/06042025/15/56/image_06042025_15_56_54_9655.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fb414fba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb414fba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb414fba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 16:00:31.988673
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/16/00/image_06042025_16_00_43_9647.jpg', 2), ('/home/nano/Desktop/images/06042025/16/00/image_06042025_16_00_34_9647.jpg', 2), ('/home/nano/Desktop/images/06042025/16/00/image_06042025_16_00_24_10656.jpg', 2), ('/home/nano/Desktop/images/06042025/15/59/image_06042025_15_59_54_10655.jpg', 2), ('/home/nano/Desktop/images/06042025/15/59/image_06042025_15_59_24_10657.jpg', 2), ('/home/nano/Desktop/images/06042025/15/59/image_06042025_15_59_13_9667.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9ef7cc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9ef7cc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9ef7cc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 16:03:02.845098
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/16/02/image_06042025_16_02_43_9640.jpg', 2), ('/home/nano/Desktop/images/06042025/16/02/image_06042025_16_02_24_10655.jpg', 2), ('/home/nano/Desktop/images/06042025/16/02/image_06042025_16_02_13_9660.jpg', 2), ('/home/nano/Desktop/images/06042025/16/01/image_06042025_16_02_04_9641.jpg', 2), ('/home/nano/Desktop/images/06042025/16/01/image_06042025_16_01_54_10652.jpg', 2), ('/home/nano/Desktop/images/06042025/16/01/image_06042025_16_01_43_9662.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fb5f51c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb5f51c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb5f51c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 16:05:32.531710
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/16/05/image_06042025_16_05_44_10650.jpg', 2), ('/home/nano/Desktop/images/06042025/16/05/image_06042025_16_05_33_9641.jpg', 2), ('/home/nano/Desktop/images/06042025/16/05/image_06042025_16_05_24_9643.jpg', 2), ('/home/nano/Desktop/images/06042025/16/05/image_06042025_16_05_14_10669.jpg', 2), ('/home/nano/Desktop/images/06042025/16/04/image_06042025_16_05_03_9654.jpg', 2), ('/home/nano/Desktop/images/06042025/16/04/image_06042025_16_04_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fb3dcbbe0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb3dcbbe0>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb3dcbbe0>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 16:08:02.342536
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/16/07/image_06042025_16_07_44_9641.jpg', 2), ('/home/nano/Desktop/images/06042025/16/07/image_06042025_16_07_34_10651.jpg', 2), ('/home/nano/Desktop/images/06042025/16/07/image_06042025_16_07_23_9640.jpg', 2), ('/home/nano/Desktop/images/06042025/16/07/image_06042025_16_07_14_9660.jpg', 2), ('/home/nano/Desktop/images/06042025/16/06/image_06042025_16_07_04_10684.jpg', 2), ('/home/nano/Desktop/images/06042025/16/06/image_06042025_16_06_44_9642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f7a904c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7a904c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7a904c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 16:10:32.054104
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/16/10/image_06042025_16_10_34_10668.jpg', 2), ('/home/nano/Desktop/images/06042025/16/10/image_06042025_16_10_23_9645.jpg', 2), ('/home/nano/Desktop/images/06042025/16/10/image_06042025_16_10_14_9658.jpg', 2), ('/home/nano/Desktop/images/06042025/16/09/image_06042025_16_09_53_9642.jpg', 2), ('/home/nano/Desktop/images/06042025/16/09/image_06042025_16_09_44_9643.jpg', 2), ('/home/nano/Desktop/images/06042025/16/09/image_06042025_16_09_34_10653.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f83d95c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f83d95c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f83d95c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 16:13:03.025074
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/16/12/image_06042025_16_12_43_9657.jpg', 2), ('/home/nano/Desktop/images/06042025/16/12/image_06042025_16_12_24_10667.jpg', 2), ('/home/nano/Desktop/images/06042025/16/12/image_06042025_16_12_13_9672.jpg', 2), ('/home/nano/Desktop/images/06042025/16/11/image_06042025_16_11_54_10679.jpg', 2), ('/home/nano/Desktop/images/06042025/16/11/image_06042025_16_11_43_9676.jpg', 2), ('/home/nano/Desktop/images/06042025/16/11/image_06042025_16_11_34_9676.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fb38aac18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb38aac18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb38aac18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 16:15:32.604055
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/16/15/image_06042025_16_15_34_9647.jpg', 2), ('/home/nano/Desktop/images/06042025/16/15/image_06042025_16_15_24_10646.jpg', 2), ('/home/nano/Desktop/images/06042025/16/15/image_06042025_16_15_13_9660.jpg', 2), ('/home/nano/Desktop/images/06042025/16/14/image_06042025_16_15_04_9638.jpg', 2), ('/home/nano/Desktop/images/06042025/16/14/image_06042025_16_14_54_10643.jpg', 2), ('/home/nano/Desktop/images/06042025/16/14/image_06042025_16_14_43_9637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8796fba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8796fba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8796fba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 16:18:02.277392
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/16/17/image_06042025_16_17_44_10643.jpg', 2), ('/home/nano/Desktop/images/06042025/16/17/image_06042025_16_17_33_9634.jpg', 2), ('/home/nano/Desktop/images/06042025/16/17/image_06042025_16_17_24_9635.jpg', 2), ('/home/nano/Desktop/images/06042025/16/17/image_06042025_16_17_14_10664.jpg', 2), ('/home/nano/Desktop/images/06042025/16/16/image_06042025_16_17_03_9645.jpg', 2), ('/home/nano/Desktop/images/06042025/16/16/image_06042025_16_16_43_9635.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fac5eec18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fac5eec18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fac5eec18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 16:20:32.151221
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/16/20/image_06042025_16_20_44_9632.jpg', 2), ('/home/nano/Desktop/images/06042025/16/20/image_06042025_16_20_34_10643.jpg', 2), ('/home/nano/Desktop/images/06042025/16/20/image_06042025_16_20_23_9634.jpg', 2), ('/home/nano/Desktop/images/06042025/16/20/image_06042025_16_20_14_9654.jpg', 2), ('/home/nano/Desktop/images/06042025/16/19/image_06042025_16_20_04_10682.jpg', 2), ('/home/nano/Desktop/images/06042025/16/19/image_06042025_16_19_53_9632.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9ced3c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9ced3c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9ced3c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 16:23:03.252018
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/16/22/image_06042025_16_22_34_9641.jpg', 2), ('/home/nano/Desktop/images/06042025/16/22/image_06042025_16_22_24_10648.jpg', 2), ('/home/nano/Desktop/images/06042025/16/22/image_06042025_16_22_13_9656.jpg', 2), ('/home/nano/Desktop/images/06042025/16/21/image_06042025_16_22_04_9640.jpg', 2), ('/home/nano/Desktop/images/06042025/16/21/image_06042025_16_21_54_10651.jpg', 2), ('/home/nano/Desktop/images/06042025/16/21/image_06042025_16_21_44_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fab6caba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fab6caba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fab6caba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 16:25:32.719912
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/16/25/image_06042025_16_25_43_9647.jpg', 2), ('/home/nano/Desktop/images/06042025/16/25/image_06042025_16_25_34_9645.jpg', 2), ('/home/nano/Desktop/images/06042025/16/25/image_06042025_16_25_24_10657.jpg', 2), ('/home/nano/Desktop/images/06042025/16/25/image_06042025_16_25_13_9671.jpg', 2), ('/home/nano/Desktop/images/06042025/16/24/image_06042025_16_25_04_9648.jpg', 2), ('/home/nano/Desktop/images/06042025/16/24/image_06042025_16_24_43_9645.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa710bc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa710bc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa710bc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 16:28:02.523671
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/16/27/image_06042025_16_27_44_10647.jpg', 2), ('/home/nano/Desktop/images/06042025/16/27/image_06042025_16_27_33_9637.jpg', 2), ('/home/nano/Desktop/images/06042025/16/27/image_06042025_16_27_24_9637.jpg', 2), ('/home/nano/Desktop/images/06042025/16/26/image_06042025_16_26_44_10666.jpg', 2), ('/home/nano/Desktop/images/06042025/16/26/image_06042025_16_26_33_9657.jpg', 2), ('/home/nano/Desktop/images/06042025/16/25/image_06042025_16_25_54_10647.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa1129c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa1129c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa1129c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 16:30:32.256029
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/16/30/image_06042025_16_30_44_9638.jpg', 2), ('/home/nano/Desktop/images/06042025/16/30/image_06042025_16_30_34_10651.jpg', 2), ('/home/nano/Desktop/images/06042025/16/30/image_06042025_16_30_23_9636.jpg', 2), ('/home/nano/Desktop/images/06042025/16/30/image_06042025_16_30_14_9654.jpg', 2), ('/home/nano/Desktop/images/06042025/16/29/image_06042025_16_30_04_10651.jpg', 2), ('/home/nano/Desktop/images/06042025/16/29/image_06042025_16_29_53_9637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8e12ac18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8e12ac18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8e12ac18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 16:33:03.263189
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/16/33/image_06042025_16_33_54_10650.jpg', 2), ('/home/nano/Desktop/images/06042025/16/32/image_06042025_16_32_43_9644.jpg', 2), ('/home/nano/Desktop/images/06042025/16/32/image_06042025_16_32_34_10653.jpg', 2), ('/home/nano/Desktop/images/06042025/16/32/image_06042025_16_32_23_9641.jpg', 2), ('/home/nano/Desktop/images/06042025/16/32/image_06042025_16_32_14_9681.jpg', 2), ('/home/nano/Desktop/images/06042025/16/31/image_06042025_16_31_53_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f80ae9c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f80ae9c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f80ae9c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 16:35:32.716771
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/16/35/image_06042025_16_35_43_9638.jpg', 2), ('/home/nano/Desktop/images/06042025/16/35/image_06042025_16_35_34_9638.jpg', 2), ('/home/nano/Desktop/images/06042025/16/35/image_06042025_16_35_24_10666.jpg', 2), ('/home/nano/Desktop/images/06042025/16/35/image_06042025_16_35_13_9653.jpg', 2), ('/home/nano/Desktop/images/06042025/16/34/image_06042025_16_35_04_9650.jpg', 2), ('/home/nano/Desktop/images/06042025/16/34/image_06042025_16_34_43_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f80f31c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f80f31c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f80f31c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 16:38:02.346884
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/16/37/image_06042025_16_37_24_9658.jpg', 2), ('/home/nano/Desktop/images/06042025/16/36/image_06042025_16_37_03_9667.jpg', 2), ('/home/nano/Desktop/images/06042025/16/36/image_06042025_16_36_54_9640.jpg', 2), ('/home/nano/Desktop/images/06042025/16/36/image_06042025_16_36_44_10649.jpg', 2), ('/home/nano/Desktop/images/06042025/16/36/image_06042025_16_36_33_9657.jpg', 2), ('/home/nano/Desktop/images/06042025/16/36/image_06042025_16_36_24_10652.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fb18c2c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb18c2c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb18c2c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 16:40:32.230092
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/16/40/image_06042025_16_40_34_10650.jpg', 2), ('/home/nano/Desktop/images/06042025/16/40/image_06042025_16_40_14_9654.jpg', 2), ('/home/nano/Desktop/images/06042025/16/39/image_06042025_16_40_04_10656.jpg', 2), ('/home/nano/Desktop/images/06042025/16/39/image_06042025_16_39_53_9638.jpg', 2), ('/home/nano/Desktop/images/06042025/16/39/image_06042025_16_39_44_10667.jpg', 2), ('/home/nano/Desktop/images/06042025/16/39/image_06042025_16_39_33_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f82211c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f82211c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f82211c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 16:43:03.281400
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/16/42/image_06042025_16_42_44_9637.jpg', 2), ('/home/nano/Desktop/images/06042025/16/42/image_06042025_16_42_34_10647.jpg', 2), ('/home/nano/Desktop/images/06042025/16/42/image_06042025_16_42_23_9638.jpg', 2), ('/home/nano/Desktop/images/06042025/16/42/image_06042025_16_42_14_9662.jpg', 2), ('/home/nano/Desktop/images/06042025/16/41/image_06042025_16_42_04_10666.jpg', 2), ('/home/nano/Desktop/images/06042025/16/41/image_06042025_16_41_44_9637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f96e6fc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f96e6fc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f96e6fc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 16:45:31.781474
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/16/45/image_06042025_16_45_43_9640.jpg', 2), ('/home/nano/Desktop/images/06042025/16/45/image_06042025_16_45_24_10647.jpg', 2), ('/home/nano/Desktop/images/06042025/16/45/image_06042025_16_45_13_9652.jpg', 2), ('/home/nano/Desktop/images/06042025/16/44/image_06042025_16_45_04_9664.jpg', 2), ('/home/nano/Desktop/images/06042025/16/44/image_06042025_16_44_54_10647.jpg', 2), ('/home/nano/Desktop/images/06042025/16/44/image_06042025_16_44_43_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fad3a3c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fad3a3c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fad3a3c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 16:48:02.578690
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/16/47/image_06042025_16_47_44_10647.jpg', 2), ('/home/nano/Desktop/images/06042025/16/47/image_06042025_16_47_33_9641.jpg', 2), ('/home/nano/Desktop/images/06042025/16/47/image_06042025_16_47_24_9638.jpg', 2), ('/home/nano/Desktop/images/06042025/16/47/image_06042025_16_47_14_10674.jpg', 2), ('/home/nano/Desktop/images/06042025/16/46/image_06042025_16_47_03_9650.jpg', 2), ('/home/nano/Desktop/images/06042025/16/46/image_06042025_16_46_44_10649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fae432c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fae432c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fae432c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 16:50:32.367529
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/16/50/image_06042025_16_50_44_9639.jpg', 2), ('/home/nano/Desktop/images/06042025/16/50/image_06042025_16_50_34_10648.jpg', 2), ('/home/nano/Desktop/images/06042025/16/50/image_06042025_16_50_23_9641.jpg', 2), ('/home/nano/Desktop/images/06042025/16/50/image_06042025_16_50_14_9655.jpg', 2), ('/home/nano/Desktop/images/06042025/16/49/image_06042025_16_50_04_10674.jpg', 2), ('/home/nano/Desktop/images/06042025/16/49/image_06042025_16_49_53_9655.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f87f0bc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f87f0bc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f87f0bc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 16:53:03.368257
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/16/52/image_06042025_16_52_44_9637.jpg', 2), ('/home/nano/Desktop/images/06042025/16/52/image_06042025_16_52_34_10650.jpg', 2), ('/home/nano/Desktop/images/06042025/16/52/image_06042025_16_52_23_9640.jpg', 2), ('/home/nano/Desktop/images/06042025/16/52/image_06042025_16_52_14_9657.jpg', 2), ('/home/nano/Desktop/images/06042025/16/51/image_06042025_16_52_04_10667.jpg', 2), ('/home/nano/Desktop/images/06042025/16/51/image_06042025_16_51_53_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f82a8cc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f82a8cc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f82a8cc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 16:55:31.898119
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/16/55/image_06042025_16_55_44_10775.jpg', 2), ('/home/nano/Desktop/images/06042025/16/55/image_06042025_16_55_33_9766.jpg', 2), ('/home/nano/Desktop/images/06042025/16/55/image_06042025_16_55_24_9766.jpg', 2), ('/home/nano/Desktop/images/06042025/16/55/image_06042025_16_55_14_9793.jpg', 2), ('/home/nano/Desktop/images/06042025/16/54/image_06042025_16_55_04_9792.jpg', 2), ('/home/nano/Desktop/images/06042025/16/54/image_06042025_16_54_54_10776.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fb1f80c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb1f80c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb1f80c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 16:58:02.608322
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/16/57/image_06042025_16_57_43_9792.jpg', 2), ('/home/nano/Desktop/images/06042025/16/57/image_06042025_16_57_34_9771.jpg', 2), ('/home/nano/Desktop/images/06042025/16/57/image_06042025_16_57_24_9770.jpg', 2), ('/home/nano/Desktop/images/06042025/16/57/image_06042025_16_57_14_10805.jpg', 2), ('/home/nano/Desktop/images/06042025/16/56/image_06042025_16_57_03_9773.jpg', 2), ('/home/nano/Desktop/images/06042025/16/56/image_06042025_16_56_53_9771.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_06042025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8f135c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8f135c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8f135c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 17:00:32.358387
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/17/00/image_06042025_17_00_43_9641.jpg', 2), ('/home/nano/Desktop/images/06042025/17/00/image_06042025_17_00_34_9640.jpg', 2), ('/home/nano/Desktop/images/06042025/17/00/image_06042025_17_00_24_10650.jpg', 2), ('/home/nano/Desktop/images/06042025/17/00/image_06042025_17_00_13_9660.jpg', 2), ('/home/nano/Desktop/images/06042025/16/59/image_06042025_17_00_04_9644.jpg', 2), ('/home/nano/Desktop/images/06042025/16/59/image_06042025_16_59_54_10647.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_06042025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa9172c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa9172c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa9172c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 17:03:03.376196
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/17/02/image_06042025_17_02_44_10656.jpg', 2), ('/home/nano/Desktop/images/06042025/17/02/image_06042025_17_02_33_9646.jpg', 2), ('/home/nano/Desktop/images/06042025/17/02/image_06042025_17_02_24_10654.jpg', 2), ('/home/nano/Desktop/images/06042025/17/02/image_06042025_17_02_13_9662.jpg', 2), ('/home/nano/Desktop/images/06042025/17/01/image_06042025_17_02_04_9653.jpg', 2), ('/home/nano/Desktop/images/06042025/17/01/image_06042025_17_01_54_10654.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_06042025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7faa608ba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7faa608ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7faa608ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 17:05:31.885509
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/17/05/image_06042025_17_05_33_9633.jpg', 2), ('/home/nano/Desktop/images/06042025/17/05/image_06042025_17_05_24_10643.jpg', 2), ('/home/nano/Desktop/images/06042025/17/05/image_06042025_17_05_13_9649.jpg', 2), ('/home/nano/Desktop/images/06042025/17/04/image_06042025_17_04_34_9635.jpg', 2), ('/home/nano/Desktop/images/06042025/17/04/image_06042025_17_04_13_9659.jpg', 2), ('/home/nano/Desktop/images/06042025/17/03/image_06042025_17_03_54_10644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_06042025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f7bb96ba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7bb96ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7bb96ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 17:08:02.516307
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/17/07/image_06042025_17_07_33_9651.jpg', 2), ('/home/nano/Desktop/images/06042025/17/06/image_06042025_17_07_03_9637.jpg', 2), ('/home/nano/Desktop/images/06042025/17/06/image_06042025_17_06_54_9634.jpg', 2), ('/home/nano/Desktop/images/06042025/17/06/image_06042025_17_06_33_9635.jpg', 2), ('/home/nano/Desktop/images/06042025/17/06/image_06042025_17_06_24_9634.jpg', 2), ('/home/nano/Desktop/images/06042025/17/06/image_06042025_17_06_14_10662.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_06042025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa5a8bc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa5a8bc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa5a8bc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 17:10:32.346245
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/17/10/image_06042025_17_10_33_9765.jpg', 2), ('/home/nano/Desktop/images/06042025/17/10/image_06042025_17_10_14_10796.jpg', 2), ('/home/nano/Desktop/images/06042025/17/09/image_06042025_17_10_03_9783.jpg', 2), ('/home/nano/Desktop/images/06042025/17/09/image_06042025_17_09_53_9784.jpg', 2), ('/home/nano/Desktop/images/06042025/17/09/image_06042025_17_09_44_9631.jpg', 2), ('/home/nano/Desktop/images/06042025/17/09/image_06042025_17_09_23_9633.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_06042025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f7f170c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7f170c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7f170c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 17:13:03.222569
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/17/12/image_06042025_17_12_44_9769.jpg', 2), ('/home/nano/Desktop/images/06042025/17/12/image_06042025_17_12_34_9770.jpg', 2), ('/home/nano/Desktop/images/06042025/17/12/image_06042025_17_12_24_10775.jpg', 2), ('/home/nano/Desktop/images/06042025/17/12/image_06042025_17_12_13_9795.jpg', 2), ('/home/nano/Desktop/images/06042025/17/11/image_06042025_17_11_54_9768.jpg', 2), ('/home/nano/Desktop/images/06042025/17/11/image_06042025_17_11_44_9763.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_06042025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8440aba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8440aba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8440aba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 17:15:31.842833
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/17/15/image_06042025_17_15_43_9643.jpg', 2), ('/home/nano/Desktop/images/06042025/17/15/image_06042025_17_15_34_9643.jpg', 2), ('/home/nano/Desktop/images/06042025/17/15/image_06042025_17_15_24_10652.jpg', 2), ('/home/nano/Desktop/images/06042025/17/15/image_06042025_17_15_13_9670.jpg', 2), ('/home/nano/Desktop/images/06042025/17/14/image_06042025_17_15_04_10660.jpg', 2), ('/home/nano/Desktop/images/06042025/17/14/image_06042025_17_14_53_9645.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_06042025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f81311ba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f81311ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f81311ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 17:18:02.571947
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/17/17/image_06042025_17_17_44_9761.jpg', 2), ('/home/nano/Desktop/images/06042025/17/17/image_06042025_17_17_34_10790.jpg', 2), ('/home/nano/Desktop/images/06042025/17/17/image_06042025_17_17_23_9764.jpg', 2), ('/home/nano/Desktop/images/06042025/17/17/image_06042025_17_17_14_9784.jpg', 2), ('/home/nano/Desktop/images/06042025/17/16/image_06042025_17_17_04_9793.jpg', 2), ('/home/nano/Desktop/images/06042025/17/16/image_06042025_17_16_54_10789.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_06042025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f93ea3c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f93ea3c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f93ea3c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 17:20:32.376473
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/17/20/image_06042025_17_20_44_9763.jpg', 2), ('/home/nano/Desktop/images/06042025/17/20/image_06042025_17_20_34_10771.jpg', 2), ('/home/nano/Desktop/images/06042025/17/20/image_06042025_17_20_23_9763.jpg', 2), ('/home/nano/Desktop/images/06042025/17/20/image_06042025_17_20_13_9789.jpg', 2), ('/home/nano/Desktop/images/06042025/17/19/image_06042025_17_20_04_9770.jpg', 2), ('/home/nano/Desktop/images/06042025/17/19/image_06042025_17_19_54_9761.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_06042025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8482fc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8482fc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8482fc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 17:23:03.157844
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/17/22/image_06042025_17_22_44_10647.jpg', 2), ('/home/nano/Desktop/images/06042025/17/22/image_06042025_17_22_33_9804.jpg', 2), ('/home/nano/Desktop/images/06042025/17/22/image_06042025_17_22_23_9727.jpg', 2), ('/home/nano/Desktop/images/06042025/17/22/image_06042025_17_22_14_9780.jpg', 2), ('/home/nano/Desktop/images/06042025/17/21/image_06042025_17_22_04_10777.jpg', 2), ('/home/nano/Desktop/images/06042025/17/21/image_06042025_17_21_53_9783.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_06042025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fb46a8c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb46a8c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb46a8c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 17:25:31.868722
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/17/25/image_06042025_17_25_44_9661.jpg', 2), ('/home/nano/Desktop/images/06042025/17/25/image_06042025_17_25_34_10659.jpg', 2), ('/home/nano/Desktop/images/06042025/17/25/image_06042025_17_25_14_9668.jpg', 2), ('/home/nano/Desktop/images/06042025/17/24/image_06042025_17_25_04_10679.jpg', 2), ('/home/nano/Desktop/images/06042025/17/24/image_06042025_17_24_53_9647.jpg', 2), ('/home/nano/Desktop/images/06042025/17/24/image_06042025_17_24_44_10656.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_06042025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f7aca7c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7aca7c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7aca7c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 17:28:02.711752
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/17/27/image_06042025_17_27_44_10577.jpg', 2), ('/home/nano/Desktop/images/06042025/17/27/image_06042025_17_27_33_9582.jpg', 2), ('/home/nano/Desktop/images/06042025/17/27/image_06042025_17_27_13_9579.jpg', 2), ('/home/nano/Desktop/images/06042025/17/26/image_06042025_17_27_04_9581.jpg', 2), ('/home/nano/Desktop/images/06042025/17/26/image_06042025_17_26_44_9582.jpg', 2), ('/home/nano/Desktop/images/06042025/17/26/image_06042025_17_26_34_10578.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_06042025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fb2930be0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb2930be0>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb2930be0>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 17:30:32.421448
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/17/30/image_06042025_17_30_34_10577.jpg', 2), ('/home/nano/Desktop/images/06042025/17/30/image_06042025_17_30_23_9569.jpg', 2), ('/home/nano/Desktop/images/06042025/17/29/image_06042025_17_30_04_10601.jpg', 2), ('/home/nano/Desktop/images/06042025/17/29/image_06042025_17_29_54_9567.jpg', 2), ('/home/nano/Desktop/images/06042025/17/29/image_06042025_17_29_44_10577.jpg', 2), ('/home/nano/Desktop/images/06042025/17/29/image_06042025_17_29_33_9569.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_06042025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f7a5c8c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7a5c8c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7a5c8c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 17:33:03.307282
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/17/32/image_06042025_17_32_43_9567.jpg', 2), ('/home/nano/Desktop/images/06042025/17/32/image_06042025_17_32_23_9573.jpg', 2), ('/home/nano/Desktop/images/06042025/17/32/image_06042025_17_32_14_9583.jpg', 2), ('/home/nano/Desktop/images/06042025/17/31/image_06042025_17_32_04_10612.jpg', 2), ('/home/nano/Desktop/images/06042025/17/31/image_06042025_17_31_53_9567.jpg', 2), ('/home/nano/Desktop/images/06042025/17/31/image_06042025_17_31_33_9570.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_06042025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f772dfba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f772dfba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f772dfba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 17:35:31.938447
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/17/32/image_06042025_17_33_04_9589.jpg', 2), ('/home/nano/Desktop/images/06042025/17/32/image_06042025_17_32_54_10583.jpg', 2), ('/home/nano/Desktop/images/06042025/17/32/image_06042025_17_32_43_9567.jpg', 2), ('/home/nano/Desktop/images/06042025/17/32/image_06042025_17_32_23_9573.jpg', 2), ('/home/nano/Desktop/images/06042025/17/32/image_06042025_17_32_14_9583.jpg', 2), ('/home/nano/Desktop/images/06042025/17/31/image_06042025_17_32_04_10612.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_06042025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f937bdc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f937bdc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f937bdc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 17:38:02.811804
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/17/37/image_06042025_17_37_14_10595.jpg', 2), ('/home/nano/Desktop/images/06042025/17/32/image_06042025_17_33_04_9589.jpg', 2), ('/home/nano/Desktop/images/06042025/17/32/image_06042025_17_32_54_10583.jpg', 2), ('/home/nano/Desktop/images/06042025/17/32/image_06042025_17_32_43_9567.jpg', 2), ('/home/nano/Desktop/images/06042025/17/32/image_06042025_17_32_23_9573.jpg', 2), ('/home/nano/Desktop/images/06042025/17/32/image_06042025_17_32_14_9583.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_06042025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fadd64c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fadd64c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fadd64c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 17:40:32.449536
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/17/39/image_06042025_17_39_33_9571.jpg', 2), ('/home/nano/Desktop/images/06042025/17/37/image_06042025_17_37_14_10595.jpg', 2), ('/home/nano/Desktop/images/06042025/17/33/image_06042025_17_33_14_10599.jpg', 2), ('/home/nano/Desktop/images/06042025/17/32/image_06042025_17_33_04_9589.jpg', 2), ('/home/nano/Desktop/images/06042025/17/32/image_06042025_17_32_54_10583.jpg', 2), ('/home/nano/Desktop/images/06042025/17/32/image_06042025_17_32_43_9567.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_06042025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fae69bc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fae69bc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fae69bc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 17:43:03.561248
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/17/39/image_06042025_17_39_33_9571.jpg', 2), ('/home/nano/Desktop/images/06042025/17/37/image_06042025_17_37_14_10595.jpg', 2), ('/home/nano/Desktop/images/06042025/17/33/image_06042025_17_33_14_10599.jpg', 2), ('/home/nano/Desktop/images/06042025/17/32/image_06042025_17_33_04_9589.jpg', 2), ('/home/nano/Desktop/images/06042025/17/32/image_06042025_17_32_54_10583.jpg', 2), ('/home/nano/Desktop/images/06042025/17/32/image_06042025_17_32_43_9567.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_06042025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f7e4c4c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7e4c4c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7e4c4c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 17:45:31.970385
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/17/39/image_06042025_17_39_33_9571.jpg', 2), ('/home/nano/Desktop/images/06042025/17/37/image_06042025_17_37_14_10595.jpg', 2), ('/home/nano/Desktop/images/06042025/17/33/image_06042025_17_33_14_10599.jpg', 2), ('/home/nano/Desktop/images/06042025/17/32/image_06042025_17_33_04_9589.jpg', 2), ('/home/nano/Desktop/images/06042025/17/32/image_06042025_17_32_54_10583.jpg', 2), ('/home/nano/Desktop/images/06042025/17/32/image_06042025_17_32_43_9567.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_06042025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f7739fc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7739fc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7739fc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 17:48:02.772971
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/17/46/image_06042025_17_47_03_9572.jpg', 2), ('/home/nano/Desktop/images/06042025/17/46/image_06042025_17_46_24_10581.jpg', 2), ('/home/nano/Desktop/images/06042025/17/39/image_06042025_17_39_44_10580.jpg', 2), ('/home/nano/Desktop/images/06042025/17/39/image_06042025_17_39_33_9571.jpg', 2), ('/home/nano/Desktop/images/06042025/17/37/image_06042025_17_37_14_10595.jpg', 2), ('/home/nano/Desktop/images/06042025/17/33/image_06042025_17_33_14_10599.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_06042025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8e5bec18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8e5bec18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8e5bec18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 17:50:32.433600
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/17/50/image_06042025_17_50_24_10582.jpg', 2), ('/home/nano/Desktop/images/06042025/17/50/image_06042025_17_50_13_9599.jpg', 2), ('/home/nano/Desktop/images/06042025/17/49/image_06042025_17_49_44_9572.jpg', 2), ('/home/nano/Desktop/images/06042025/17/49/image_06042025_17_49_34_10583.jpg', 2), ('/home/nano/Desktop/images/06042025/17/49/image_06042025_17_49_24_9590.jpg', 2), ('/home/nano/Desktop/images/06042025/17/48/image_06042025_17_49_03_9582.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_06042025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f99c1dc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f99c1dc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f99c1dc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 17:53:03.418379
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/17/52/image_06042025_17_52_24_10582.jpg', 2), ('/home/nano/Desktop/images/06042025/17/51/image_06042025_17_52_04_10603.jpg', 2), ('/home/nano/Desktop/images/06042025/17/51/image_06042025_17_51_53_9571.jpg', 2), ('/home/nano/Desktop/images/06042025/17/51/image_06042025_17_51_44_10583.jpg', 2), ('/home/nano/Desktop/images/06042025/17/51/image_06042025_17_51_33_9574.jpg', 2), ('/home/nano/Desktop/images/06042025/17/51/image_06042025_17_51_24_9573.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_06042025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f7fdc7ba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7fdc7ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7fdc7ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 17:55:31.997776
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/17/55/image_06042025_17_55_44_9570.jpg', 2), ('/home/nano/Desktop/images/06042025/17/55/image_06042025_17_55_34_10582.jpg', 2), ('/home/nano/Desktop/images/06042025/17/55/image_06042025_17_55_24_9572.jpg', 2), ('/home/nano/Desktop/images/06042025/17/55/image_06042025_17_55_14_10599.jpg', 2), ('/home/nano/Desktop/images/06042025/17/54/image_06042025_17_55_03_9580.jpg', 2), ('/home/nano/Desktop/images/06042025/17/54/image_06042025_17_54_54_10582.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_06042025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8aa3bc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8aa3bc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8aa3bc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 17:58:02.823978
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/17/57/image_06042025_17_57_34_10585.jpg', 2), ('/home/nano/Desktop/images/06042025/17/57/image_06042025_17_57_14_10597.jpg', 2), ('/home/nano/Desktop/images/06042025/17/56/image_06042025_17_57_03_9586.jpg', 2), ('/home/nano/Desktop/images/06042025/17/56/image_06042025_17_56_43_9574.jpg', 2), ('/home/nano/Desktop/images/06042025/17/56/image_06042025_17_56_24_10585.jpg', 2), ('/home/nano/Desktop/images/06042025/17/56/image_06042025_17_56_13_9592.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_06042025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8f849c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8f849c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8f849c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 18:00:31.736093
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/18/00/image_06042025_18_00_34_9572.jpg', 2), ('/home/nano/Desktop/images/06042025/18/00/image_06042025_18_00_24_10579.jpg', 2), ('/home/nano/Desktop/images/06042025/18/00/image_06042025_18_00_13_9584.jpg', 2), ('/home/nano/Desktop/images/06042025/17/59/image_06042025_18_00_04_10601.jpg', 2), ('/home/nano/Desktop/images/06042025/17/59/image_06042025_17_59_34_10582.jpg', 2), ('/home/nano/Desktop/images/06042025/17/59/image_06042025_17_59_24_9573.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_06042025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9303bc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9303bc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9303bc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 18:03:02.790845
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/18/02/image_06042025_18_02_43_9569.jpg', 2), ('/home/nano/Desktop/images/06042025/18/02/image_06042025_18_02_34_9566.jpg', 2), ('/home/nano/Desktop/images/06042025/18/02/image_06042025_18_02_24_10582.jpg', 2), ('/home/nano/Desktop/images/06042025/18/02/image_06042025_18_02_13_9593.jpg', 2), ('/home/nano/Desktop/images/06042025/18/01/image_06042025_18_02_04_10587.jpg', 2), ('/home/nano/Desktop/images/06042025/18/01/image_06042025_18_01_53_9573.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_06042025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f93a0cc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f93a0cc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f93a0cc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 18:05:32.238955
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/18/05/image_06042025_18_05_44_9843.jpg', 2), ('/home/nano/Desktop/images/06042025/18/05/image_06042025_18_05_34_10579.jpg', 2), ('/home/nano/Desktop/images/06042025/18/05/image_06042025_18_05_23_9581.jpg', 2), ('/home/nano/Desktop/images/06042025/18/05/image_06042025_18_05_14_10596.jpg', 2), ('/home/nano/Desktop/images/06042025/18/04/image_06042025_18_05_03_9585.jpg', 2), ('/home/nano/Desktop/images/06042025/18/04/image_06042025_18_04_54_9567.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_06042025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f95c1dba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f95c1dba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f95c1dba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 18:08:02.956073
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/18/07/image_06042025_18_07_44_9780.jpg', 2), ('/home/nano/Desktop/images/06042025/18/07/image_06042025_18_07_34_10743.jpg', 2), ('/home/nano/Desktop/images/06042025/18/07/image_06042025_18_07_23_9755.jpg', 2), ('/home/nano/Desktop/images/06042025/18/07/image_06042025_18_07_14_9757.jpg', 2), ('/home/nano/Desktop/images/06042025/18/06/image_06042025_18_07_04_9858.jpg', 2), ('/home/nano/Desktop/images/06042025/18/06/image_06042025_18_06_54_9855.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_06042025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fafedcba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fafedcba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fafedcba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 18:10:32.752314
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/18/10/image_06042025_18_10_43_9814.jpg', 2), ('/home/nano/Desktop/images/06042025/18/10/image_06042025_18_10_33_9788.jpg', 2), ('/home/nano/Desktop/images/06042025/18/10/image_06042025_18_10_24_9788.jpg', 2), ('/home/nano/Desktop/images/06042025/18/10/image_06042025_18_10_14_9813.jpg', 2), ('/home/nano/Desktop/images/06042025/18/09/image_06042025_18_10_04_10814.jpg', 2), ('/home/nano/Desktop/images/06042025/18/09/image_06042025_18_09_53_9801.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_06042025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f92f98c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f92f98c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f92f98c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 18:13:02.672198
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/18/12/image_06042025_18_12_44_9814.jpg', 2), ('/home/nano/Desktop/images/06042025/18/12/image_06042025_18_12_34_10804.jpg', 2), ('/home/nano/Desktop/images/06042025/18/12/image_06042025_18_12_23_9790.jpg', 2), ('/home/nano/Desktop/images/06042025/18/12/image_06042025_18_12_13_9821.jpg', 2), ('/home/nano/Desktop/images/06042025/18/11/image_06042025_18_12_04_9796.jpg', 2), ('/home/nano/Desktop/images/06042025/18/11/image_06042025_18_11_54_9788.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_06042025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8c03cc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8c03cc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8c03cc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 18:15:32.301237
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/18/15/image_06042025_18_15_43_9802.jpg', 2), ('/home/nano/Desktop/images/06042025/18/15/image_06042025_18_15_34_9801.jpg', 2), ('/home/nano/Desktop/images/06042025/18/15/image_06042025_18_15_24_9805.jpg', 2), ('/home/nano/Desktop/images/06042025/18/15/image_06042025_18_15_14_10833.jpg', 2), ('/home/nano/Desktop/images/06042025/18/14/image_06042025_18_15_03_9816.jpg', 2), ('/home/nano/Desktop/images/06042025/18/14/image_06042025_18_14_53_9804.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_06042025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fb1a8fc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb1a8fc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb1a8fc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 18:18:03.083933
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/18/17/image_06042025_18_17_43_9827.jpg', 2), ('/home/nano/Desktop/images/06042025/18/17/image_06042025_18_17_33_9824.jpg', 2), ('/home/nano/Desktop/images/06042025/18/17/image_06042025_18_17_14_9822.jpg', 2), ('/home/nano/Desktop/images/06042025/18/16/image_06042025_18_17_04_9816.jpg', 2), ('/home/nano/Desktop/images/06042025/18/16/image_06042025_18_16_54_10812.jpg', 2), ('/home/nano/Desktop/images/06042025/18/16/image_06042025_18_16_43_9805.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_06042025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9fdb5c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9fdb5c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9fdb5c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 18:20:31.792404
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/18/20/image_06042025_18_20_34_10659.jpg', 2), ('/home/nano/Desktop/images/06042025/18/20/image_06042025_18_20_23_9648.jpg', 2), ('/home/nano/Desktop/images/06042025/18/20/image_06042025_18_20_14_9671.jpg', 2), ('/home/nano/Desktop/images/06042025/18/19/image_06042025_18_19_53_9645.jpg', 2), ('/home/nano/Desktop/images/06042025/18/19/image_06042025_18_19_44_9641.jpg', 2), ('/home/nano/Desktop/images/06042025/18/19/image_06042025_18_19_34_10653.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_06042025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f7df7bc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7df7bc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7df7bc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 18:23:02.862297
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/18/22/image_06042025_18_22_44_9673.jpg', 2), ('/home/nano/Desktop/images/06042025/18/22/image_06042025_18_22_34_10663.jpg', 2), ('/home/nano/Desktop/images/06042025/18/21/image_06042025_18_22_04_10674.jpg', 2), ('/home/nano/Desktop/images/06042025/18/21/image_06042025_18_21_53_9644.jpg', 2), ('/home/nano/Desktop/images/06042025/18/21/image_06042025_18_21_44_9650.jpg', 2), ('/home/nano/Desktop/images/06042025/18/21/image_06042025_18_21_34_10654.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_06042025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f82765c50>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f82765c50>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f82765c50>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 18:25:32.410091
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/18/25/image_06042025_18_25_34_10661.jpg', 2), ('/home/nano/Desktop/images/06042025/18/25/image_06042025_18_25_23_9652.jpg', 2), ('/home/nano/Desktop/images/06042025/18/25/image_06042025_18_25_14_9669.jpg', 2), ('/home/nano/Desktop/images/06042025/18/24/image_06042025_18_25_04_10676.jpg', 2), ('/home/nano/Desktop/images/06042025/18/24/image_06042025_18_24_53_9653.jpg', 2), ('/home/nano/Desktop/images/06042025/18/24/image_06042025_18_24_44_9653.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_06042025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f93c06c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f93c06c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f93c06c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 18:28:03.222760
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/18/27/image_06042025_18_27_44_9794.jpg', 2), ('/home/nano/Desktop/images/06042025/18/27/image_06042025_18_27_34_10803.jpg', 2), ('/home/nano/Desktop/images/06042025/18/27/image_06042025_18_27_23_9823.jpg', 2), ('/home/nano/Desktop/images/06042025/18/27/image_06042025_18_27_13_9847.jpg', 2), ('/home/nano/Desktop/images/06042025/18/26/image_06042025_18_27_04_9817.jpg', 2), ('/home/nano/Desktop/images/06042025/18/26/image_06042025_18_26_54_9806.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_06042025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8bc02ba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8bc02ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8bc02ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 18:30:31.933497
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/18/30/image_06042025_18_30_43_9786.jpg', 2), ('/home/nano/Desktop/images/06042025/18/30/image_06042025_18_30_34_9766.jpg', 2), ('/home/nano/Desktop/images/06042025/18/30/image_06042025_18_30_24_9766.jpg', 2), ('/home/nano/Desktop/images/06042025/18/30/image_06042025_18_30_14_10836.jpg', 2), ('/home/nano/Desktop/images/06042025/18/29/image_06042025_18_30_03_9818.jpg', 2), ('/home/nano/Desktop/images/06042025/18/29/image_06042025_18_29_53_9823.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_06042025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8e237c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8e237c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8e237c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 18:33:03.037267
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/18/32/image_06042025_18_32_33_9646.jpg', 2), ('/home/nano/Desktop/images/06042025/18/32/image_06042025_18_32_24_9647.jpg', 2), ('/home/nano/Desktop/images/06042025/18/32/image_06042025_18_32_14_10675.jpg', 2), ('/home/nano/Desktop/images/06042025/18/31/image_06042025_18_32_03_9649.jpg', 2), ('/home/nano/Desktop/images/06042025/18/31/image_06042025_18_31_54_9649.jpg', 2), ('/home/nano/Desktop/images/06042025/18/31/image_06042025_18_31_44_10656.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_06042025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fb1e25c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb1e25c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb1e25c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 18:35:32.598276
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/18/35/image_06042025_18_35_44_10658.jpg', 2), ('/home/nano/Desktop/images/06042025/18/35/image_06042025_18_35_33_9647.jpg', 2), ('/home/nano/Desktop/images/06042025/18/35/image_06042025_18_35_24_9646.jpg', 2), ('/home/nano/Desktop/images/06042025/18/35/image_06042025_18_35_14_10676.jpg', 2), ('/home/nano/Desktop/images/06042025/18/34/image_06042025_18_35_03_9658.jpg', 2), ('/home/nano/Desktop/images/06042025/18/34/image_06042025_18_34_54_9649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_06042025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa28afc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa28afc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa28afc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 18:38:02.463646
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/18/37/image_06042025_18_37_43_9777.jpg', 2), ('/home/nano/Desktop/images/06042025/18/37/image_06042025_18_37_34_9779.jpg', 2), ('/home/nano/Desktop/images/06042025/18/37/image_06042025_18_37_24_9764.jpg', 2), ('/home/nano/Desktop/images/06042025/18/37/image_06042025_18_37_14_10644.jpg', 2), ('/home/nano/Desktop/images/06042025/18/36/image_06042025_18_37_03_9621.jpg', 2), ('/home/nano/Desktop/images/06042025/18/36/image_06042025_18_36_54_9613.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_06042025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f93c0bba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f93c0bba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f93c0bba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 18:40:32.133788
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/18/40/image_06042025_18_40_43_9642.jpg', 2), ('/home/nano/Desktop/images/06042025/18/40/image_06042025_18_40_34_9643.jpg', 2), ('/home/nano/Desktop/images/06042025/18/40/image_06042025_18_40_24_10652.jpg', 2), ('/home/nano/Desktop/images/06042025/18/40/image_06042025_18_40_13_9826.jpg', 2), ('/home/nano/Desktop/images/06042025/18/39/image_06042025_18_40_04_9782.jpg', 2), ('/home/nano/Desktop/images/06042025/18/39/image_06042025_18_39_54_9776.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_06042025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f90db3c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f90db3c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f90db3c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 18:43:03.061036
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/18/42/image_06042025_18_42_43_9654.jpg', 2), ('/home/nano/Desktop/images/06042025/18/42/image_06042025_18_42_34_9657.jpg', 2), ('/home/nano/Desktop/images/06042025/18/42/image_06042025_18_42_24_10663.jpg', 2), ('/home/nano/Desktop/images/06042025/18/42/image_06042025_18_42_13_9659.jpg', 2), ('/home/nano/Desktop/images/06042025/18/41/image_06042025_18_42_04_9662.jpg', 2), ('/home/nano/Desktop/images/06042025/18/41/image_06042025_18_41_43_9642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_06042025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fb6350c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb6350c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb6350c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 18:45:32.638406
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/18/45/image_06042025_18_45_44_10657.jpg', 2), ('/home/nano/Desktop/images/06042025/18/45/image_06042025_18_45_33_9649.jpg', 2), ('/home/nano/Desktop/images/06042025/18/45/image_06042025_18_45_24_9649.jpg', 2), ('/home/nano/Desktop/images/06042025/18/45/image_06042025_18_45_14_10675.jpg', 2), ('/home/nano/Desktop/images/06042025/18/44/image_06042025_18_45_03_9693.jpg', 2), ('/home/nano/Desktop/images/06042025/18/44/image_06042025_18_44_54_9648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_06042025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8e34dc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8e34dc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8e34dc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 18:48:02.409517
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/18/47/image_06042025_18_47_33_9645.jpg', 2), ('/home/nano/Desktop/images/06042025/18/47/image_06042025_18_47_24_9644.jpg', 2), ('/home/nano/Desktop/images/06042025/18/47/image_06042025_18_47_14_10671.jpg', 2), ('/home/nano/Desktop/images/06042025/18/46/image_06042025_18_47_03_9655.jpg', 2), ('/home/nano/Desktop/images/06042025/18/46/image_06042025_18_46_54_9648.jpg', 2), ('/home/nano/Desktop/images/06042025/18/46/image_06042025_18_46_44_10658.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_06042025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f80eacc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f80eacc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f80eacc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 18:50:32.121317
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/18/50/image_06042025_18_50_44_10666.jpg', 2), ('/home/nano/Desktop/images/06042025/18/50/image_06042025_18_50_33_9656.jpg', 2), ('/home/nano/Desktop/images/06042025/18/50/image_06042025_18_50_23_9655.jpg', 2), ('/home/nano/Desktop/images/06042025/18/50/image_06042025_18_50_14_10684.jpg', 2), ('/home/nano/Desktop/images/06042025/18/49/image_06042025_18_50_03_9663.jpg', 2), ('/home/nano/Desktop/images/06042025/18/49/image_06042025_18_49_53_9653.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_06042025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9c162c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9c162c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9c162c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 18:53:03.046496
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/18/52/image_06042025_18_52_44_9654.jpg', 2), ('/home/nano/Desktop/images/06042025/18/52/image_06042025_18_52_34_10665.jpg', 2), ('/home/nano/Desktop/images/06042025/18/52/image_06042025_18_52_23_9653.jpg', 2), ('/home/nano/Desktop/images/06042025/18/52/image_06042025_18_52_14_9675.jpg', 2), ('/home/nano/Desktop/images/06042025/18/51/image_06042025_18_52_04_10676.jpg', 2), ('/home/nano/Desktop/images/06042025/18/51/image_06042025_18_51_53_9654.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_06042025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8dec4c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8dec4c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8dec4c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 18:55:32.655229
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/18/55/image_06042025_18_55_44_10660.jpg', 2), ('/home/nano/Desktop/images/06042025/18/55/image_06042025_18_55_33_9648.jpg', 2), ('/home/nano/Desktop/images/06042025/18/55/image_06042025_18_55_24_9647.jpg', 2), ('/home/nano/Desktop/images/06042025/18/55/image_06042025_18_55_14_10679.jpg', 2), ('/home/nano/Desktop/images/06042025/18/54/image_06042025_18_55_03_9662.jpg', 2), ('/home/nano/Desktop/images/06042025/18/54/image_06042025_18_54_54_9650.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_06042025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7faba54c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7faba54c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7faba54c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 18:58:02.361892
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/18/57/image_06042025_18_57_43_9808.jpg', 2), ('/home/nano/Desktop/images/06042025/18/57/image_06042025_18_57_34_9823.jpg', 2), ('/home/nano/Desktop/images/06042025/18/57/image_06042025_18_57_24_9809.jpg', 2), ('/home/nano/Desktop/images/06042025/18/57/image_06042025_18_57_14_10828.jpg', 2), ('/home/nano/Desktop/images/06042025/18/56/image_06042025_18_57_03_9804.jpg', 2), ('/home/nano/Desktop/images/06042025/18/56/image_06042025_18_56_53_9797.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_06042025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fb6104c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb6104c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb6104c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 19:00:32.088052
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/19/00/image_06042025_19_00_44_10818.jpg', 2), ('/home/nano/Desktop/images/06042025/19/00/image_06042025_19_00_33_9807.jpg', 2), ('/home/nano/Desktop/images/06042025/19/00/image_06042025_19_00_24_9809.jpg', 2), ('/home/nano/Desktop/images/06042025/19/00/image_06042025_19_00_14_9850.jpg', 2), ('/home/nano/Desktop/images/06042025/18/59/image_06042025_19_00_04_9833.jpg', 2), ('/home/nano/Desktop/images/06042025/18/59/image_06042025_18_59_54_10809.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_06042025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f801f6c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f801f6c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f801f6c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 19:03:03.166763
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/19/02/image_06042025_19_02_43_9652.jpg', 2), ('/home/nano/Desktop/images/06042025/19/02/image_06042025_19_02_34_9665.jpg', 2), ('/home/nano/Desktop/images/06042025/19/02/image_06042025_19_02_24_10660.jpg', 2), ('/home/nano/Desktop/images/06042025/19/02/image_06042025_19_02_13_9689.jpg', 2), ('/home/nano/Desktop/images/06042025/19/01/image_06042025_19_02_04_9657.jpg', 2), ('/home/nano/Desktop/images/06042025/19/01/image_06042025_19_01_54_10658.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_06042025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fb3c4abe0>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb3c4abe0>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb3c4abe0>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 19:05:32.610806
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/19/05/image_06042025_19_05_34_10649.jpg', 2), ('/home/nano/Desktop/images/06042025/19/05/image_06042025_19_05_23_9640.jpg', 2), ('/home/nano/Desktop/images/06042025/19/05/image_06042025_19_05_14_9658.jpg', 2), ('/home/nano/Desktop/images/06042025/19/04/image_06042025_19_05_04_10813.jpg', 2), ('/home/nano/Desktop/images/06042025/19/04/image_06042025_19_04_53_9791.jpg', 2), ('/home/nano/Desktop/images/06042025/19/04/image_06042025_19_04_44_9791.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_06042025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fb082bc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb082bc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb082bc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 19:08:02.501395
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/19/07/image_06042025_19_08_04_10673.jpg', 2), ('/home/nano/Desktop/images/06042025/19/07/image_06042025_19_07_44_9638.jpg', 2), ('/home/nano/Desktop/images/06042025/19/07/image_06042025_19_07_23_9637.jpg', 2), ('/home/nano/Desktop/images/06042025/19/07/image_06042025_19_07_14_9655.jpg', 2), ('/home/nano/Desktop/images/06042025/19/06/image_06042025_19_07_04_10663.jpg', 2), ('/home/nano/Desktop/images/06042025/19/06/image_06042025_19_06_53_9659.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_06042025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa487ac18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa487ac18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa487ac18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 19:10:32.145691
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/19/10/image_06042025_19_10_44_10664.jpg', 2), ('/home/nano/Desktop/images/06042025/19/10/image_06042025_19_10_33_9658.jpg', 2), ('/home/nano/Desktop/images/06042025/19/10/image_06042025_19_10_24_9777.jpg', 2), ('/home/nano/Desktop/images/06042025/19/10/image_06042025_19_10_14_9801.jpg', 2), ('/home/nano/Desktop/images/06042025/19/09/image_06042025_19_10_04_10800.jpg', 2), ('/home/nano/Desktop/images/06042025/19/09/image_06042025_19_09_53_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_06042025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fb0da1c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb0da1c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb0da1c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 19:13:03.069167
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/19/12/image_06042025_19_12_43_9776.jpg', 2), ('/home/nano/Desktop/images/06042025/19/12/image_06042025_19_12_34_9773.jpg', 2), ('/home/nano/Desktop/images/06042025/19/12/image_06042025_19_12_24_9775.jpg', 2), ('/home/nano/Desktop/images/06042025/19/12/image_06042025_19_12_14_10807.jpg', 2), ('/home/nano/Desktop/images/06042025/19/11/image_06042025_19_12_03_9655.jpg', 2), ('/home/nano/Desktop/images/06042025/19/11/image_06042025_19_11_54_9651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_06042025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f77cd1c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f77cd1c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f77cd1c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 19:15:32.707569
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/19/15/image_06042025_19_15_43_9639.jpg', 2), ('/home/nano/Desktop/images/06042025/19/15/image_06042025_19_15_34_9635.jpg', 2), ('/home/nano/Desktop/images/06042025/19/15/image_06042025_19_15_24_10643.jpg', 2), ('/home/nano/Desktop/images/06042025/19/15/image_06042025_19_15_13_9655.jpg', 2), ('/home/nano/Desktop/images/06042025/19/14/image_06042025_19_15_04_9795.jpg', 2), ('/home/nano/Desktop/images/06042025/19/14/image_06042025_19_14_54_9924.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_06042025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f84defba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f84defba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f84defba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 19:18:02.490961
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/19/17/image_06042025_19_17_43_9769.jpg', 2), ('/home/nano/Desktop/images/06042025/19/17/image_06042025_19_17_33_9768.jpg', 2), ('/home/nano/Desktop/images/06042025/19/17/image_06042025_19_17_24_9635.jpg', 2), ('/home/nano/Desktop/images/06042025/19/17/image_06042025_19_17_14_10669.jpg', 2), ('/home/nano/Desktop/images/06042025/19/16/image_06042025_19_17_03_9640.jpg', 2), ('/home/nano/Desktop/images/06042025/19/16/image_06042025_19_16_54_9635.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_06042025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f7a717c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7a717c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7a717c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 19:20:32.306631
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/19/20/image_06042025_19_20_44_9647.jpg', 2), ('/home/nano/Desktop/images/06042025/19/20/image_06042025_19_20_34_10658.jpg', 2), ('/home/nano/Desktop/images/06042025/19/20/image_06042025_19_20_23_9649.jpg', 2), ('/home/nano/Desktop/images/06042025/19/20/image_06042025_19_20_14_9665.jpg', 2), ('/home/nano/Desktop/images/06042025/19/19/image_06042025_19_20_04_10665.jpg', 2), ('/home/nano/Desktop/images/06042025/19/19/image_06042025_19_19_53_9644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_06042025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f836fcc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f836fcc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f836fcc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 19:23:03.348553
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/19/22/image_06042025_19_22_44_9656.jpg', 2), ('/home/nano/Desktop/images/06042025/19/22/image_06042025_19_22_34_10652.jpg', 2), ('/home/nano/Desktop/images/06042025/19/22/image_06042025_19_22_23_9642.jpg', 2), ('/home/nano/Desktop/images/06042025/19/22/image_06042025_19_22_14_9667.jpg', 2), ('/home/nano/Desktop/images/06042025/19/21/image_06042025_19_22_04_10687.jpg', 2), ('/home/nano/Desktop/images/06042025/19/21/image_06042025_19_21_53_9648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_06042025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f810bbc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f810bbc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f810bbc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 19:25:31.852664
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/19/25/image_06042025_19_25_44_10805.jpg', 2), ('/home/nano/Desktop/images/06042025/19/25/image_06042025_19_25_33_9796.jpg', 2), ('/home/nano/Desktop/images/06042025/19/25/image_06042025_19_25_24_9797.jpg', 2), ('/home/nano/Desktop/images/06042025/19/25/image_06042025_19_25_14_9818.jpg', 2), ('/home/nano/Desktop/images/06042025/19/24/image_06042025_19_25_04_9809.jpg', 2), ('/home/nano/Desktop/images/06042025/19/24/image_06042025_19_24_54_10807.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_06042025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa3a36c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa3a36c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa3a36c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 19:28:02.725639
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/19/27/image_06042025_19_27_24_9800.jpg', 2), ('/home/nano/Desktop/images/06042025/19/27/image_06042025_19_27_14_10831.jpg', 2), ('/home/nano/Desktop/images/06042025/19/26/image_06042025_19_27_03_9812.jpg', 2), ('/home/nano/Desktop/images/06042025/19/26/image_06042025_19_26_53_9803.jpg', 2), ('/home/nano/Desktop/images/06042025/19/26/image_06042025_19_26_44_9644.jpg', 2), ('/home/nano/Desktop/images/06042025/19/26/image_06042025_19_26_34_10648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_06042025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8d3b3c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8d3b3c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8d3b3c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 19:30:32.398993
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/19/30/image_06042025_19_30_44_10655.jpg', 2), ('/home/nano/Desktop/images/06042025/19/30/image_06042025_19_30_33_9647.jpg', 2), ('/home/nano/Desktop/images/06042025/19/30/image_06042025_19_30_24_9647.jpg', 2), ('/home/nano/Desktop/images/06042025/19/30/image_06042025_19_30_14_10670.jpg', 2), ('/home/nano/Desktop/images/06042025/19/29/image_06042025_19_30_03_9664.jpg', 2), ('/home/nano/Desktop/images/06042025/19/29/image_06042025_19_29_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_06042025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fb0f2bc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb0f2bc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb0f2bc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 19:33:03.324699
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/19/32/image_06042025_19_32_23_9644.jpg', 2), ('/home/nano/Desktop/images/06042025/19/32/image_06042025_19_32_14_9662.jpg', 2), ('/home/nano/Desktop/images/06042025/19/31/image_06042025_19_32_04_10666.jpg', 2), ('/home/nano/Desktop/images/06042025/19/31/image_06042025_19_31_44_9663.jpg', 2), ('/home/nano/Desktop/images/06042025/19/31/image_06042025_19_31_34_10655.jpg', 2), ('/home/nano/Desktop/images/06042025/19/31/image_06042025_19_31_23_9646.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_06042025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9a9e5ba8>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9a9e5ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9a9e5ba8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 19:35:31.910166
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/19/35/image_06042025_19_35_44_9771.jpg', 2), ('/home/nano/Desktop/images/06042025/19/35/image_06042025_19_35_34_9772.jpg', 2), ('/home/nano/Desktop/images/06042025/19/35/image_06042025_19_35_24_10781.jpg', 2), ('/home/nano/Desktop/images/06042025/19/35/image_06042025_19_35_13_9800.jpg', 2), ('/home/nano/Desktop/images/06042025/19/34/image_06042025_19_35_04_9775.jpg', 2), ('/home/nano/Desktop/images/06042025/19/34/image_06042025_19_34_44_10778.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_06042025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8200ac18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8200ac18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8200ac18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 19:38:02.727678
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/19/37/image_06042025_19_37_34_9656.jpg', 2), ('/home/nano/Desktop/images/06042025/19/37/image_06042025_19_37_24_9806.jpg', 2), ('/home/nano/Desktop/images/06042025/19/37/image_06042025_19_37_14_10840.jpg', 2), ('/home/nano/Desktop/images/06042025/19/36/image_06042025_19_37_03_9848.jpg', 2), ('/home/nano/Desktop/images/06042025/19/36/image_06042025_19_36_53_9804.jpg', 2), ('/home/nano/Desktop/images/06042025/19/36/image_06042025_19_36_44_9803.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_06042025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f79d91c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f79d91c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f79d91c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 19:40:32.512866
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/19/40/image_06042025_19_40_24_9662.jpg', 2), ('/home/nano/Desktop/images/06042025/19/40/image_06042025_19_40_14_10674.jpg', 2), ('/home/nano/Desktop/images/06042025/19/39/image_06042025_19_40_03_9643.jpg', 2), ('/home/nano/Desktop/images/06042025/19/39/image_06042025_19_39_54_9656.jpg', 2), ('/home/nano/Desktop/images/06042025/19/39/image_06042025_19_39_44_10655.jpg', 2), ('/home/nano/Desktop/images/06042025/19/39/image_06042025_19_39_33_9646.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_06042025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f88d7bc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f88d7bc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f88d7bc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 19:43:02.654451
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/19/42/image_06042025_19_42_43_9644.jpg', 2), ('/home/nano/Desktop/images/06042025/19/42/image_06042025_19_42_34_9642.jpg', 2), ('/home/nano/Desktop/images/06042025/19/42/image_06042025_19_42_24_10652.jpg', 2), ('/home/nano/Desktop/images/06042025/19/42/image_06042025_19_42_13_9681.jpg', 2), ('/home/nano/Desktop/images/06042025/19/41/image_06042025_19_42_04_9666.jpg', 2), ('/home/nano/Desktop/images/06042025/19/41/image_06042025_19_41_54_9795.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_06042025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fb2457c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb2457c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb2457c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 19:45:32.055982
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/19/45/image_06042025_19_45_44_10671.jpg', 2), ('/home/nano/Desktop/images/06042025/19/45/image_06042025_19_45_33_9643.jpg', 2), ('/home/nano/Desktop/images/06042025/19/45/image_06042025_19_45_24_9645.jpg', 2), ('/home/nano/Desktop/images/06042025/19/45/image_06042025_19_45_14_10669.jpg', 2), ('/home/nano/Desktop/images/06042025/19/44/image_06042025_19_45_03_9654.jpg', 2), ('/home/nano/Desktop/images/06042025/19/44/image_06042025_19_44_54_9644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_06042025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f936dcc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f936dcc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f936dcc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 19:48:02.846895
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/19/47/image_06042025_19_47_44_10660.jpg', 2), ('/home/nano/Desktop/images/06042025/19/47/image_06042025_19_47_33_9646.jpg', 2), ('/home/nano/Desktop/images/06042025/19/47/image_06042025_19_47_24_9669.jpg', 2), ('/home/nano/Desktop/images/06042025/19/47/image_06042025_19_47_14_10671.jpg', 2), ('/home/nano/Desktop/images/06042025/19/46/image_06042025_19_47_03_9652.jpg', 2), ('/home/nano/Desktop/images/06042025/19/46/image_06042025_19_46_54_9655.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_06042025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8292fc18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8292fc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8292fc18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 19:50:32.510748
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/19/50/image_06042025_19_50_44_9641.jpg', 2), ('/home/nano/Desktop/images/06042025/19/50/image_06042025_19_50_14_9661.jpg', 2), ('/home/nano/Desktop/images/06042025/19/49/image_06042025_19_49_44_9643.jpg', 2), ('/home/nano/Desktop/images/06042025/19/49/image_06042025_19_49_34_10653.jpg', 2), ('/home/nano/Desktop/images/06042025/19/49/image_06042025_19_49_23_9647.jpg', 2), ('/home/nano/Desktop/images/06042025/19/49/image_06042025_19_49_14_9662.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_06042025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa7154c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa7154c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa7154c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 19:53:02.561492
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/19/53/image_06042025_19_53_54_9778.jpg', 2), ('/home/nano/Desktop/images/06042025/19/52/image_06042025_19_52_44_9653.jpg', 2), ('/home/nano/Desktop/images/06042025/19/52/image_06042025_19_52_34_10656.jpg', 2), ('/home/nano/Desktop/images/06042025/19/52/image_06042025_19_52_23_9649.jpg', 2), ('/home/nano/Desktop/images/06042025/19/52/image_06042025_19_52_14_9688.jpg', 2), ('/home/nano/Desktop/images/06042025/19/51/image_06042025_19_52_04_10675.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_06042025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9e70ec18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9e70ec18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9e70ec18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 19:55:32.020993
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/19/55/image_06042025_19_55_44_10815.jpg', 2), ('/home/nano/Desktop/images/06042025/19/55/image_06042025_19_55_33_9830.jpg', 2), ('/home/nano/Desktop/images/06042025/19/55/image_06042025_19_55_23_9847.jpg', 2), ('/home/nano/Desktop/images/06042025/19/55/image_06042025_19_55_14_9867.jpg', 2), ('/home/nano/Desktop/images/06042025/19/54/image_06042025_19_55_04_9856.jpg', 2), ('/home/nano/Desktop/images/06042025/19/54/image_06042025_19_54_54_10659.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_06042025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f80425c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f80425c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f80425c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 19:58:02.629580
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/19/57/image_06042025_19_57_44_10658.jpg', 2), ('/home/nano/Desktop/images/06042025/19/56/image_06042025_19_56_54_9808.jpg', 2), ('/home/nano/Desktop/images/06042025/19/56/image_06042025_19_56_44_9794.jpg', 2), ('/home/nano/Desktop/images/06042025/19/56/image_06042025_19_56_34_10819.jpg', 2), ('/home/nano/Desktop/images/06042025/19/56/image_06042025_19_56_23_9806.jpg', 2), ('/home/nano/Desktop/images/06042025/19/56/image_06042025_19_56_13_9829.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_06042025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.6/http/client.py", line 1281, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1327, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1276, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1042, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 980, in send
    self.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f96ba0c18>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f96ba0c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in send
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 677, in <listcomp>
    history = [resp for resp in gen]
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 245, in resolve_redirects
    **adapter_kwargs
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='assistance.fotonower.com', port=80): Max retries exceeded with url: /?url=marlene (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f96ba0c18>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 20:00:32.486949
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_06042025
 fc.token : 035006c8a8acff541e6b264f3a90e0b8
True
0
2727250
0
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/20/00/image_06042025_20_00_44_10778.jpg', 2), ('/home/nano/Desktop/images/06042025/20/00/image_06042025_20_00_33_9769.jpg', 2), ('/home/nano/Desktop/images/06042025/20/00/image_06042025_20_00_23_9770.jpg', 2), ('/home/nano/Desktop/images/06042025/20/00/image_06042025_20_00_14_9792.jpg', 2), ('/home/nano/Desktop/images/06042025/19/59/image_06042025_20_00_04_9781.jpg', 2), ('/home/nano/Desktop/images/06042025/19/59/image_06042025_19_59_54_10778.jpg', 2)]
{'portfolio_id': 22083902, 'actiontaken': ['Created new portfolio'], 'error': 'Photos id not exist !', 'updated_at': 1743962493000}
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/20/00/image_06042025_20_00_44_10778.jpg', '/home/nano/Desktop/images/06042025/20/00/image_06042025_20_00_33_9769.jpg', '/home/nano/Desktop/images/06042025/20/00/image_06042025_20_00_23_9770.jpg', '/home/nano/Desktop/images/06042025/20/00/image_06042025_20_00_14_9792.jpg', '/home/nano/Desktop/images/06042025/19/59/image_06042025_20_00_04_9781.jpg', '/home/nano/Desktop/images/06042025/19/59/image_06042025_19_59_54_10778.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/20/00/image_06042025_20_00_44_10778.jpg
/home/nano/Desktop/images/06042025/20/00/image_06042025_20_00_33_9769.jpg
/home/nano/Desktop/images/06042025/20/00/image_06042025_20_00_23_9770.jpg
/home/nano/Desktop/images/06042025/20/00/image_06042025_20_00_14_9792.jpg
/home/nano/Desktop/images/06042025/19/59/image_06042025_20_00_04_9781.jpg
/home/nano/Desktop/images/06042025/19/59/image_06042025_19_59_54_10778.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
after request
<Response [200]>
b'{"photo_ids":["1350180348","1350180351","1350180345","1350180359","1350180341","1350180355"],"photo_ids_order":["1350180341","1350180345","1350180348","1350180351","1350180355","1350180359"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/0c53903a64fecc075407fe7cfb8b5dc3.jpg","text":"TemporaryFile(/tmp/multipartBody3010076024747114157asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743962496942,"filename":"image_06042025_20_00_23_9770.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/78699261539a7a91693e17edf05f31aa.jpg","text":"TemporaryFile(/tmp/multipartBody5421268562092696318asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743962496942,"filename":"image_06042025_20_00_14_9792.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f2fe1425ab1dd6a3e0f0466beef38bbe.jpg","text":"TemporaryFile(/tmp/multipartBody6259697083982336573asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743962496942,"filename":"image_06042025_20_00_33_9769.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/522eaaa529906df099210c7a2d375a6c.jpg","text":"TemporaryFile(/tmp/multipartBody2497722016297224217asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743962496942,"filename":"image_06042025_19_59_54_10778.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/090856c8beba8c2b1e101c0054f99221.jpg","text":"TemporaryFile(/tmp/multipartBody8107337446737501201asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743962496942,"filename":"image_06042025_20_00_44_10778.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c8ea75485bb0618eacf15f6d132f1a3d.jpg","text":"TemporaryFile(/tmp/multipartBody8559145569312056288asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743962496942,"filename":"image_06042025_20_00_04_9781.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350180348","file1":"1350180345","file0":"1350180341","file4":"1350180355","file5":"1350180359","file3":"1350180351"},"map_files_photo_id_array":[{"photo_id":"1350180359","filename":"file5"},{"photo_id":"1350180348","filename":"file2"},{"photo_id":"1350180355","filename":"file4"},{"photo_id":"1350180345","filename":"file1"},{"photo_id":"1350180341","filename":"file0"},{"photo_id":"1350180351","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350180348":["hashtag1","hashtag2"]},{"1350180351":["hashtag1","hashtag2"]},{"1350180345":["hashtag1","hashtag2"]},{"1350180359":["hashtag1","hashtag2"]},{"1350180341":["hashtag1","hashtag2"]},{"1350180355":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350180348, 1350180351, 1350180345, 1350180359, 1350180341, 1350180355)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 199.94166827201843 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 20:04:02.677051
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/20/03/image_06042025_20_03_33_9650.jpg', 2), ('/home/nano/Desktop/images/06042025/20/03/image_06042025_20_03_24_9650.jpg', 2), ('/home/nano/Desktop/images/06042025/20/03/image_06042025_20_03_14_10652.jpg', 2), ('/home/nano/Desktop/images/06042025/20/02/image_06042025_20_03_03_9645.jpg', 2), ('/home/nano/Desktop/images/06042025/20/02/image_06042025_20_02_54_9645.jpg', 2), ('/home/nano/Desktop/images/06042025/20/02/image_06042025_20_02_44_10675.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/20/03/image_06042025_20_03_33_9650.jpg', '/home/nano/Desktop/images/06042025/20/03/image_06042025_20_03_24_9650.jpg', '/home/nano/Desktop/images/06042025/20/03/image_06042025_20_03_14_10652.jpg', '/home/nano/Desktop/images/06042025/20/02/image_06042025_20_03_03_9645.jpg', '/home/nano/Desktop/images/06042025/20/02/image_06042025_20_02_54_9645.jpg', '/home/nano/Desktop/images/06042025/20/02/image_06042025_20_02_44_10675.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/20/03/image_06042025_20_03_33_9650.jpg
/home/nano/Desktop/images/06042025/20/03/image_06042025_20_03_24_9650.jpg
/home/nano/Desktop/images/06042025/20/03/image_06042025_20_03_14_10652.jpg
/home/nano/Desktop/images/06042025/20/02/image_06042025_20_03_03_9645.jpg
/home/nano/Desktop/images/06042025/20/02/image_06042025_20_02_54_9645.jpg
/home/nano/Desktop/images/06042025/20/02/image_06042025_20_02_44_10675.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350180415","1350180435","1350180420","1350180428","1350180401","1350180407"],"photo_ids_order":["1350180401","1350180407","1350180415","1350180420","1350180428","1350180435"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e7c1ec113f99243d9e0d1eb562c1a90f.jpg","text":"TemporaryFile(/tmp/multipartBody1974886167065087684asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743962704438,"filename":"image_06042025_20_03_14_10652.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/38033dc298f8167122c5e735d89bf510.jpg","text":"TemporaryFile(/tmp/multipartBody8021774742625274237asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743962704438,"filename":"image_06042025_20_02_44_10675.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c82d5b4f4c9416ae10b69307b235c487.jpg","text":"TemporaryFile(/tmp/multipartBody3868134259590632639asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743962704438,"filename":"image_06042025_20_03_03_9645.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/cfce90503836bf092de32f87054398a7.jpg","text":"TemporaryFile(/tmp/multipartBody2799436960357349415asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743962704438,"filename":"image_06042025_20_02_54_9645.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/de2fce70b061f49c43936fd4aeb35129.jpg","text":"TemporaryFile(/tmp/multipartBody8010539909406284048asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743962704438,"filename":"image_06042025_20_03_33_9650.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4bec42470a1070ba4e9033e9bb6ad795.jpg","text":"TemporaryFile(/tmp/multipartBody1069749950224123667asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743962704438,"filename":"image_06042025_20_03_24_9650.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350180415","file1":"1350180407","file0":"1350180401","file4":"1350180428","file5":"1350180435","file3":"1350180420"},"map_files_photo_id_array":[{"photo_id":"1350180435","filename":"file5"},{"photo_id":"1350180415","filename":"file2"},{"photo_id":"1350180428","filename":"file4"},{"photo_id":"1350180407","filename":"file1"},{"photo_id":"1350180401","filename":"file0"},{"photo_id":"1350180420","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350180415":["hashtag1","hashtag2"]},{"1350180435":["hashtag1","hashtag2"]},{"1350180420":["hashtag1","hashtag2"]},{"1350180428":["hashtag1","hashtag2"]},{"1350180401":["hashtag1","hashtag2"]},{"1350180407":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350180415, 1350180435, 1350180420, 1350180428, 1350180401, 1350180407)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.99887704849243 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 20:05:02.284311
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/20/04/image_06042025_20_04_43_9768.jpg', 2), ('/home/nano/Desktop/images/06042025/20/04/image_06042025_20_04_34_9767.jpg', 2), ('/home/nano/Desktop/images/06042025/20/04/image_06042025_20_04_24_9767.jpg', 2), ('/home/nano/Desktop/images/06042025/20/04/image_06042025_20_04_14_10795.jpg', 2), ('/home/nano/Desktop/images/06042025/20/03/image_06042025_20_04_03_9772.jpg', 2), ('/home/nano/Desktop/images/06042025/20/03/image_06042025_20_03_54_9669.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/20/04/image_06042025_20_04_43_9768.jpg', '/home/nano/Desktop/images/06042025/20/04/image_06042025_20_04_34_9767.jpg', '/home/nano/Desktop/images/06042025/20/04/image_06042025_20_04_24_9767.jpg', '/home/nano/Desktop/images/06042025/20/04/image_06042025_20_04_14_10795.jpg', '/home/nano/Desktop/images/06042025/20/03/image_06042025_20_04_03_9772.jpg', '/home/nano/Desktop/images/06042025/20/03/image_06042025_20_03_54_9669.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/20/04/image_06042025_20_04_43_9768.jpg
/home/nano/Desktop/images/06042025/20/04/image_06042025_20_04_34_9767.jpg
/home/nano/Desktop/images/06042025/20/04/image_06042025_20_04_24_9767.jpg
/home/nano/Desktop/images/06042025/20/04/image_06042025_20_04_14_10795.jpg
/home/nano/Desktop/images/06042025/20/03/image_06042025_20_04_03_9772.jpg
/home/nano/Desktop/images/06042025/20/03/image_06042025_20_03_54_9669.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350180511","1350180483","1350180474","1350180479","1350180470","1350180487"],"photo_ids_order":["1350180470","1350180474","1350180479","1350180483","1350180487","1350180511"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e5c87da30b028cef364e61cdefb2ba0f.jpg","text":"TemporaryFile(/tmp/multipartBody279253463760780177asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743962764565,"filename":"image_06042025_20_03_54_9669.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e1a9a7111b9d53808afb120cbb7bc6af.jpg","text":"TemporaryFile(/tmp/multipartBody494918520351477443asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743962764565,"filename":"image_06042025_20_04_14_10795.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/87af545d16edef88f27bd84ef1bb78db.jpg","text":"TemporaryFile(/tmp/multipartBody5653100988364261039asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743962764565,"filename":"image_06042025_20_04_34_9767.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/6db38c8cb3b744c79896df09e2a3e534.jpg","text":"TemporaryFile(/tmp/multipartBody200431581355634381asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743962764565,"filename":"image_06042025_20_04_24_9767.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4143b116df12eaa4898c21ca43c19d5a.jpg","text":"TemporaryFile(/tmp/multipartBody2606156146666240687asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743962764565,"filename":"image_06042025_20_04_43_9768.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/bae3fb238373336957af95738979aebc.jpg","text":"TemporaryFile(/tmp/multipartBody995242639528425208asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743962764565,"filename":"image_06042025_20_04_03_9772.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350180479","file1":"1350180474","file0":"1350180470","file4":"1350180487","file5":"1350180511","file3":"1350180483"},"map_files_photo_id_array":[{"photo_id":"1350180511","filename":"file5"},{"photo_id":"1350180479","filename":"file2"},{"photo_id":"1350180487","filename":"file4"},{"photo_id":"1350180474","filename":"file1"},{"photo_id":"1350180470","filename":"file0"},{"photo_id":"1350180483","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350180511":["hashtag1","hashtag2"]},{"1350180483":["hashtag1","hashtag2"]},{"1350180474":["hashtag1","hashtag2"]},{"1350180479":["hashtag1","hashtag2"]},{"1350180470":["hashtag1","hashtag2"]},{"1350180487":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350180511, 1350180483, 1350180474, 1350180479, 1350180470, 1350180487)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 36.67983675003052 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 20:06:02.709158
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/20/05/image_06042025_20_05_44_10787.jpg', 2), ('/home/nano/Desktop/images/06042025/20/05/image_06042025_20_05_33_9770.jpg', 2), ('/home/nano/Desktop/images/06042025/20/05/image_06042025_20_05_24_9770.jpg', 2), ('/home/nano/Desktop/images/06042025/20/05/image_06042025_20_05_14_9792.jpg', 2), ('/home/nano/Desktop/images/06042025/20/04/image_06042025_20_05_04_10801.jpg', 2), ('/home/nano/Desktop/images/06042025/20/04/image_06042025_20_04_53_9768.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/20/05/image_06042025_20_05_44_10787.jpg', '/home/nano/Desktop/images/06042025/20/05/image_06042025_20_05_33_9770.jpg', '/home/nano/Desktop/images/06042025/20/05/image_06042025_20_05_24_9770.jpg', '/home/nano/Desktop/images/06042025/20/05/image_06042025_20_05_14_9792.jpg', '/home/nano/Desktop/images/06042025/20/04/image_06042025_20_05_04_10801.jpg', '/home/nano/Desktop/images/06042025/20/04/image_06042025_20_04_53_9768.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/20/05/image_06042025_20_05_44_10787.jpg
/home/nano/Desktop/images/06042025/20/05/image_06042025_20_05_33_9770.jpg
/home/nano/Desktop/images/06042025/20/05/image_06042025_20_05_24_9770.jpg
/home/nano/Desktop/images/06042025/20/05/image_06042025_20_05_14_9792.jpg
/home/nano/Desktop/images/06042025/20/04/image_06042025_20_05_04_10801.jpg
/home/nano/Desktop/images/06042025/20/04/image_06042025_20_04_53_9768.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350180538","1350180532","1350180558","1350180543","1350180548","1350180553"],"photo_ids_order":["1350180532","1350180538","1350180543","1350180548","1350180553","1350180558"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/1efd00e5c15c05f4fc51d87bcfa3cb79.jpg","text":"TemporaryFile(/tmp/multipartBody3863087356601137423asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743962825272,"filename":"image_06042025_20_05_33_9770.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/937971e4600c7d3dba9b4640d5b9bb24.jpg","text":"TemporaryFile(/tmp/multipartBody4555773851782106826asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743962825272,"filename":"image_06042025_20_05_44_10787.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a2b928b0cafd90eba9eb3985c31616ef.jpg","text":"TemporaryFile(/tmp/multipartBody8719730752842692184asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743962825272,"filename":"image_06042025_20_04_53_9768.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/67999ca9949af612ee38bfe126b9b4d8.jpg","text":"TemporaryFile(/tmp/multipartBody6991876384942884714asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743962825272,"filename":"image_06042025_20_05_24_9770.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/5b2ed791376e36057c4388561bd77ead.jpg","text":"TemporaryFile(/tmp/multipartBody88222395114395153asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743962825272,"filename":"image_06042025_20_05_14_9792.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/448ecf6a0e66275bf34744c99c85cf78.jpg","text":"TemporaryFile(/tmp/multipartBody4448719110163001536asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743962825272,"filename":"image_06042025_20_05_04_10801.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350180543","file1":"1350180538","file0":"1350180532","file4":"1350180553","file5":"1350180558","file3":"1350180548"},"map_files_photo_id_array":[{"photo_id":"1350180558","filename":"file5"},{"photo_id":"1350180543","filename":"file2"},{"photo_id":"1350180553","filename":"file4"},{"photo_id":"1350180538","filename":"file1"},{"photo_id":"1350180532","filename":"file0"},{"photo_id":"1350180548","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350180538":["hashtag1","hashtag2"]},{"1350180532":["hashtag1","hashtag2"]},{"1350180558":["hashtag1","hashtag2"]},{"1350180543":["hashtag1","hashtag2"]},{"1350180548":["hashtag1","hashtag2"]},{"1350180553":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350180538, 1350180532, 1350180558, 1350180543, 1350180548, 1350180553)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.713343143463135 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 20:07:02.923316
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/20/06/image_06042025_20_06_44_9779.jpg', 2), ('/home/nano/Desktop/images/06042025/20/06/image_06042025_20_06_34_10790.jpg', 2), ('/home/nano/Desktop/images/06042025/20/06/image_06042025_20_06_23_9779.jpg', 2), ('/home/nano/Desktop/images/06042025/20/06/image_06042025_20_06_14_9802.jpg', 2), ('/home/nano/Desktop/images/06042025/20/05/image_06042025_20_06_04_9785.jpg', 2), ('/home/nano/Desktop/images/06042025/20/05/image_06042025_20_05_54_9779.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/20/06/image_06042025_20_06_44_9779.jpg', '/home/nano/Desktop/images/06042025/20/06/image_06042025_20_06_34_10790.jpg', '/home/nano/Desktop/images/06042025/20/06/image_06042025_20_06_23_9779.jpg', '/home/nano/Desktop/images/06042025/20/06/image_06042025_20_06_14_9802.jpg', '/home/nano/Desktop/images/06042025/20/05/image_06042025_20_06_04_9785.jpg', '/home/nano/Desktop/images/06042025/20/05/image_06042025_20_05_54_9779.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/20/06/image_06042025_20_06_44_9779.jpg
/home/nano/Desktop/images/06042025/20/06/image_06042025_20_06_34_10790.jpg
/home/nano/Desktop/images/06042025/20/06/image_06042025_20_06_23_9779.jpg
/home/nano/Desktop/images/06042025/20/06/image_06042025_20_06_14_9802.jpg
/home/nano/Desktop/images/06042025/20/05/image_06042025_20_06_04_9785.jpg
/home/nano/Desktop/images/06042025/20/05/image_06042025_20_05_54_9779.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350180601","1350180591","1350180599","1350180605","1350180608","1350180595"],"photo_ids_order":["1350180591","1350180595","1350180599","1350180601","1350180605","1350180608"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b45f5024a7be656afce31ec6a6061b42.jpg","text":"TemporaryFile(/tmp/multipartBody8110454475694243931asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743962885731,"filename":"image_06042025_20_06_14_9802.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a645fc6a0d23d051afee7822791b0215.jpg","text":"TemporaryFile(/tmp/multipartBody6997997060530245090asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743962885731,"filename":"image_06042025_20_06_44_9779.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b2ee69930ea4772ad38ed742b1141fc3.jpg","text":"TemporaryFile(/tmp/multipartBody6305219465781255612asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743962885731,"filename":"image_06042025_20_06_23_9779.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/72949858f7856fb1a2f6e56492def223.jpg","text":"TemporaryFile(/tmp/multipartBody1059306294818422511asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743962885731,"filename":"image_06042025_20_06_04_9785.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/0493a193fc311534aca38b3f46a6f33a.jpg","text":"TemporaryFile(/tmp/multipartBody5780680877828428563asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743962885731,"filename":"image_06042025_20_05_54_9779.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/2b1cc5a575040f990e21056ea90fa948.jpg","text":"TemporaryFile(/tmp/multipartBody1357920310633843659asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743962885731,"filename":"image_06042025_20_06_34_10790.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350180599","file1":"1350180595","file0":"1350180591","file4":"1350180605","file5":"1350180608","file3":"1350180601"},"map_files_photo_id_array":[{"photo_id":"1350180608","filename":"file5"},{"photo_id":"1350180599","filename":"file2"},{"photo_id":"1350180605","filename":"file4"},{"photo_id":"1350180595","filename":"file1"},{"photo_id":"1350180591","filename":"file0"},{"photo_id":"1350180601","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350180601":["hashtag1","hashtag2"]},{"1350180591":["hashtag1","hashtag2"]},{"1350180599":["hashtag1","hashtag2"]},{"1350180605":["hashtag1","hashtag2"]},{"1350180608":["hashtag1","hashtag2"]},{"1350180595":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350180601, 1350180591, 1350180599, 1350180605, 1350180608, 1350180595)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.47825360298157 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 20:08:02.823695
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/20/07/image_06042025_20_07_44_10665.jpg', 2), ('/home/nano/Desktop/images/06042025/20/07/image_06042025_20_07_33_9656.jpg', 2), ('/home/nano/Desktop/images/06042025/20/07/image_06042025_20_07_24_9638.jpg', 2), ('/home/nano/Desktop/images/06042025/20/07/image_06042025_20_07_14_10669.jpg', 2), ('/home/nano/Desktop/images/06042025/20/06/image_06042025_20_07_03_9797.jpg', 2), ('/home/nano/Desktop/images/06042025/20/06/image_06042025_20_06_54_9780.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/20/07/image_06042025_20_07_44_10665.jpg', '/home/nano/Desktop/images/06042025/20/07/image_06042025_20_07_33_9656.jpg', '/home/nano/Desktop/images/06042025/20/07/image_06042025_20_07_24_9638.jpg', '/home/nano/Desktop/images/06042025/20/07/image_06042025_20_07_14_10669.jpg', '/home/nano/Desktop/images/06042025/20/06/image_06042025_20_07_03_9797.jpg', '/home/nano/Desktop/images/06042025/20/06/image_06042025_20_06_54_9780.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/20/07/image_06042025_20_07_44_10665.jpg
/home/nano/Desktop/images/06042025/20/07/image_06042025_20_07_33_9656.jpg
/home/nano/Desktop/images/06042025/20/07/image_06042025_20_07_24_9638.jpg
/home/nano/Desktop/images/06042025/20/07/image_06042025_20_07_14_10669.jpg
/home/nano/Desktop/images/06042025/20/06/image_06042025_20_07_03_9797.jpg
/home/nano/Desktop/images/06042025/20/06/image_06042025_20_06_54_9780.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 1.5420525074005127 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 20:08:32.291183
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/20/08/image_06042025_20_08_33_9648.jpg', 2), ('/home/nano/Desktop/images/06042025/20/08/image_06042025_20_08_14_10678.jpg', 2), ('/home/nano/Desktop/images/06042025/20/07/image_06042025_20_07_54_9646.jpg', 2), ('/home/nano/Desktop/images/06042025/20/07/image_06042025_20_07_44_10665.jpg', 2), ('/home/nano/Desktop/images/06042025/20/07/image_06042025_20_07_33_9656.jpg', 2), ('/home/nano/Desktop/images/06042025/20/07/image_06042025_20_07_24_9638.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/20/08/image_06042025_20_08_33_9648.jpg', '/home/nano/Desktop/images/06042025/20/08/image_06042025_20_08_14_10678.jpg', '/home/nano/Desktop/images/06042025/20/07/image_06042025_20_07_54_9646.jpg', '/home/nano/Desktop/images/06042025/20/07/image_06042025_20_07_44_10665.jpg', '/home/nano/Desktop/images/06042025/20/07/image_06042025_20_07_33_9656.jpg', '/home/nano/Desktop/images/06042025/20/07/image_06042025_20_07_24_9638.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/20/08/image_06042025_20_08_33_9648.jpg
/home/nano/Desktop/images/06042025/20/08/image_06042025_20_08_14_10678.jpg
/home/nano/Desktop/images/06042025/20/07/image_06042025_20_07_54_9646.jpg
/home/nano/Desktop/images/06042025/20/07/image_06042025_20_07_44_10665.jpg
/home/nano/Desktop/images/06042025/20/07/image_06042025_20_07_33_9656.jpg
/home/nano/Desktop/images/06042025/20/07/image_06042025_20_07_24_9638.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350180646","1350180660","1350180648","1350180642","1350180656","1350180653"],"photo_ids_order":["1350180642","1350180646","1350180648","1350180653","1350180656","1350180660"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/9b925364330425d3dd65562be9628734.jpg","text":"TemporaryFile(/tmp/multipartBody2789954226987608898asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743962973955,"filename":"image_06042025_20_08_14_10678.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/eb28c0c923a658838d73bebd01eed53a.jpg","text":"TemporaryFile(/tmp/multipartBody6201856900483263155asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743962973955,"filename":"image_06042025_20_07_24_9638.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/aaf6d728540d567cf19da72490c37451.jpg","text":"TemporaryFile(/tmp/multipartBody3579522963413106922asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743962973955,"filename":"image_06042025_20_07_54_9646.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c11efd0727251d29c5e5d241c51c7602.jpg","text":"TemporaryFile(/tmp/multipartBody8636927188009093580asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743962973955,"filename":"image_06042025_20_08_33_9648.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/9381ab8cf79e9a0e0f3fcd610854c26d.jpg","text":"TemporaryFile(/tmp/multipartBody8935352739551327216asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743962973955,"filename":"image_06042025_20_07_33_9656.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/7c24c11b70d7f13c6492170480988016.jpg","text":"TemporaryFile(/tmp/multipartBody6732982589872342588asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743962973955,"filename":"image_06042025_20_07_44_10665.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350180648","file1":"1350180646","file0":"1350180642","file4":"1350180656","file5":"1350180660","file3":"1350180653"},"map_files_photo_id_array":[{"photo_id":"1350180660","filename":"file5"},{"photo_id":"1350180648","filename":"file2"},{"photo_id":"1350180656","filename":"file4"},{"photo_id":"1350180646","filename":"file1"},{"photo_id":"1350180642","filename":"file0"},{"photo_id":"1350180653","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350180646":["hashtag1","hashtag2"]},{"1350180660":["hashtag1","hashtag2"]},{"1350180648":["hashtag1","hashtag2"]},{"1350180642":["hashtag1","hashtag2"]},{"1350180656":["hashtag1","hashtag2"]},{"1350180653":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350180646, 1350180660, 1350180648, 1350180642, 1350180656, 1350180653)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.86822319030762 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 20:09:32.429157
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/20/09/image_06042025_20_09_43_9782.jpg', 2), ('/home/nano/Desktop/images/06042025/20/09/image_06042025_20_09_34_9794.jpg', 2), ('/home/nano/Desktop/images/06042025/20/09/image_06042025_20_09_24_9780.jpg', 2), ('/home/nano/Desktop/images/06042025/20/09/image_06042025_20_09_14_10663.jpg', 2), ('/home/nano/Desktop/images/06042025/20/08/image_06042025_20_09_03_9673.jpg', 2), ('/home/nano/Desktop/images/06042025/20/08/image_06042025_20_08_44_10680.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/20/09/image_06042025_20_09_43_9782.jpg', '/home/nano/Desktop/images/06042025/20/09/image_06042025_20_09_34_9794.jpg', '/home/nano/Desktop/images/06042025/20/09/image_06042025_20_09_24_9780.jpg', '/home/nano/Desktop/images/06042025/20/09/image_06042025_20_09_14_10663.jpg', '/home/nano/Desktop/images/06042025/20/08/image_06042025_20_09_03_9673.jpg', '/home/nano/Desktop/images/06042025/20/08/image_06042025_20_08_44_10680.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/20/09/image_06042025_20_09_43_9782.jpg
/home/nano/Desktop/images/06042025/20/09/image_06042025_20_09_34_9794.jpg
/home/nano/Desktop/images/06042025/20/09/image_06042025_20_09_24_9780.jpg
/home/nano/Desktop/images/06042025/20/09/image_06042025_20_09_14_10663.jpg
/home/nano/Desktop/images/06042025/20/08/image_06042025_20_09_03_9673.jpg
/home/nano/Desktop/images/06042025/20/08/image_06042025_20_08_44_10680.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350180682","1350180696","1350180709","1350180711","1350180674","1350180704"],"photo_ids_order":["1350180674","1350180682","1350180696","1350180704","1350180709","1350180711"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4551593b6ef2f2ad502fb0ed37090cf6.jpg","text":"TemporaryFile(/tmp/multipartBody7873704576615168012asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963034529,"filename":"image_06042025_20_09_34_9794.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ba5a93c508807aeaafda2d804ce4c865.jpg","text":"TemporaryFile(/tmp/multipartBody781619692302215123asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963034529,"filename":"image_06042025_20_09_24_9780.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/50e98e34c3cb50b42b4539ddebaf318d.jpg","text":"TemporaryFile(/tmp/multipartBody1132545461830643558asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963034529,"filename":"image_06042025_20_09_03_9673.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/2d9053649a4600328909dfc2631c4fc6.jpg","text":"TemporaryFile(/tmp/multipartBody4330074088272417510asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963034529,"filename":"image_06042025_20_08_44_10680.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/374221bf80f35862400cb878acb333be.jpg","text":"TemporaryFile(/tmp/multipartBody759843575129909630asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963034529,"filename":"image_06042025_20_09_43_9782.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/02e419777dfcf6d0c9d00f906cd3f774.jpg","text":"TemporaryFile(/tmp/multipartBody5173286222904328571asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963034529,"filename":"image_06042025_20_09_14_10663.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350180696","file1":"1350180682","file0":"1350180674","file4":"1350180709","file5":"1350180711","file3":"1350180704"},"map_files_photo_id_array":[{"photo_id":"1350180711","filename":"file5"},{"photo_id":"1350180696","filename":"file2"},{"photo_id":"1350180709","filename":"file4"},{"photo_id":"1350180682","filename":"file1"},{"photo_id":"1350180674","filename":"file0"},{"photo_id":"1350180704","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350180682":["hashtag1","hashtag2"]},{"1350180696":["hashtag1","hashtag2"]},{"1350180709":["hashtag1","hashtag2"]},{"1350180711":["hashtag1","hashtag2"]},{"1350180674":["hashtag1","hashtag2"]},{"1350180704":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350180682, 1350180696, 1350180709, 1350180711, 1350180674, 1350180704)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.55455446243286 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 20:10:32.544050
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/20/10/image_06042025_20_10_44_9777.jpg', 2), ('/home/nano/Desktop/images/06042025/20/10/image_06042025_20_10_34_10787.jpg', 2), ('/home/nano/Desktop/images/06042025/20/10/image_06042025_20_10_23_9739.jpg', 2), ('/home/nano/Desktop/images/06042025/20/10/image_06042025_20_10_14_9658.jpg', 2), ('/home/nano/Desktop/images/06042025/20/09/image_06042025_20_10_04_10800.jpg', 2), ('/home/nano/Desktop/images/06042025/20/09/image_06042025_20_09_53_9780.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/20/10/image_06042025_20_10_44_9777.jpg', '/home/nano/Desktop/images/06042025/20/10/image_06042025_20_10_34_10787.jpg', '/home/nano/Desktop/images/06042025/20/10/image_06042025_20_10_23_9739.jpg', '/home/nano/Desktop/images/06042025/20/10/image_06042025_20_10_14_9658.jpg', '/home/nano/Desktop/images/06042025/20/09/image_06042025_20_10_04_10800.jpg', '/home/nano/Desktop/images/06042025/20/09/image_06042025_20_09_53_9780.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/20/10/image_06042025_20_10_44_9777.jpg
/home/nano/Desktop/images/06042025/20/10/image_06042025_20_10_34_10787.jpg
/home/nano/Desktop/images/06042025/20/10/image_06042025_20_10_23_9739.jpg
/home/nano/Desktop/images/06042025/20/10/image_06042025_20_10_14_9658.jpg
/home/nano/Desktop/images/06042025/20/09/image_06042025_20_10_04_10800.jpg
/home/nano/Desktop/images/06042025/20/09/image_06042025_20_09_53_9780.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350180760","1350180811","1350180756","1350180771","1350180765","1350180752"],"photo_ids_order":["1350180752","1350180756","1350180760","1350180765","1350180771","1350180811"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/bc4fcac31f633dac9e2d962c38eb7fcc.jpg","text":"TemporaryFile(/tmp/multipartBody8908534132315238588asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963094978,"filename":"image_06042025_20_10_23_9739.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c2eeea487033fa32b33dd8070ca5b358.jpg","text":"TemporaryFile(/tmp/multipartBody7530392747408912184asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963094978,"filename":"image_06042025_20_09_53_9780.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/2b03a5856c6eff974b5fc973f3577edd.jpg","text":"TemporaryFile(/tmp/multipartBody2147556332545949186asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963094978,"filename":"image_06042025_20_10_34_10787.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/d90e3d21605511eab1c2741ef8f771b9.jpg","text":"TemporaryFile(/tmp/multipartBody8735279962266010348asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963094978,"filename":"image_06042025_20_10_04_10800.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/6ada52c7713f21e458d4db5d37948b62.jpg","text":"TemporaryFile(/tmp/multipartBody1543545115055377964asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963094978,"filename":"image_06042025_20_10_14_9658.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/bd10458d3e6e9cac63b1b51d481c007a.jpg","text":"TemporaryFile(/tmp/multipartBody5952815432014814259asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963094978,"filename":"image_06042025_20_10_44_9777.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350180760","file1":"1350180756","file0":"1350180752","file4":"1350180771","file5":"1350180811","file3":"1350180765"},"map_files_photo_id_array":[{"photo_id":"1350180811","filename":"file5"},{"photo_id":"1350180760","filename":"file2"},{"photo_id":"1350180771","filename":"file4"},{"photo_id":"1350180756","filename":"file1"},{"photo_id":"1350180752","filename":"file0"},{"photo_id":"1350180765","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350180760":["hashtag1","hashtag2"]},{"1350180811":["hashtag1","hashtag2"]},{"1350180756":["hashtag1","hashtag2"]},{"1350180771":["hashtag1","hashtag2"]},{"1350180765":["hashtag1","hashtag2"]},{"1350180752":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350180760, 1350180811, 1350180756, 1350180771, 1350180765, 1350180752)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 45.947253465652466 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 20:11:32.640210
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/20/11/image_06042025_20_11_33_9652.jpg', 2), ('/home/nano/Desktop/images/06042025/20/11/image_06042025_20_11_24_9650.jpg', 2), ('/home/nano/Desktop/images/06042025/20/11/image_06042025_20_11_14_10670.jpg', 2), ('/home/nano/Desktop/images/06042025/20/10/image_06042025_20_11_03_9654.jpg', 2), ('/home/nano/Desktop/images/06042025/20/10/image_06042025_20_10_54_9776.jpg', 2), ('/home/nano/Desktop/images/06042025/20/07/image_06042025_20_07_14_10669.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/20/11/image_06042025_20_11_33_9652.jpg', '/home/nano/Desktop/images/06042025/20/11/image_06042025_20_11_24_9650.jpg', '/home/nano/Desktop/images/06042025/20/11/image_06042025_20_11_14_10670.jpg', '/home/nano/Desktop/images/06042025/20/10/image_06042025_20_11_03_9654.jpg', '/home/nano/Desktop/images/06042025/20/10/image_06042025_20_10_54_9776.jpg', '/home/nano/Desktop/images/06042025/20/07/image_06042025_20_07_14_10669.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/20/11/image_06042025_20_11_33_9652.jpg
/home/nano/Desktop/images/06042025/20/11/image_06042025_20_11_24_9650.jpg
/home/nano/Desktop/images/06042025/20/11/image_06042025_20_11_14_10670.jpg
/home/nano/Desktop/images/06042025/20/10/image_06042025_20_11_03_9654.jpg
/home/nano/Desktop/images/06042025/20/10/image_06042025_20_10_54_9776.jpg
/home/nano/Desktop/images/06042025/20/07/image_06042025_20_07_14_10669.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350180853","1350180843","1350180840","1350180828","1350180857","1350180824"],"photo_ids_order":["1350180824","1350180828","1350180840","1350180843","1350180853","1350180857"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/06ecfd013ca4c7c71fd2686843ea0077.jpg","text":"TemporaryFile(/tmp/multipartBody29913294760965913asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963154344,"filename":"image_06042025_20_10_54_9776.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/fe97bd6298630f198f401df6782dc938.jpg","text":"TemporaryFile(/tmp/multipartBody7975268588615684130asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963154344,"filename":"image_06042025_20_11_03_9654.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ff38767a11044f87df3660cac730ee97.jpg","text":"TemporaryFile(/tmp/multipartBody1703562622134058542asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963154344,"filename":"image_06042025_20_11_14_10670.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/bf460aa7bfcb1a39eb77a1893f1d7c69.jpg","text":"TemporaryFile(/tmp/multipartBody1459779234748699952asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963154344,"filename":"image_06042025_20_11_24_9650.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/1ad42675f758d9c0fb551d6df0e5c435.jpg","text":"TemporaryFile(/tmp/multipartBody2791355736550415066asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963154344,"filename":"image_06042025_20_07_14_10669.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/2df52d438fd11c5ade5250f70a6d5355.jpg","text":"TemporaryFile(/tmp/multipartBody4028807930044577609asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963154344,"filename":"image_06042025_20_11_33_9652.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350180840","file1":"1350180828","file0":"1350180824","file4":"1350180853","file5":"1350180857","file3":"1350180843"},"map_files_photo_id_array":[{"photo_id":"1350180857","filename":"file5"},{"photo_id":"1350180840","filename":"file2"},{"photo_id":"1350180853","filename":"file4"},{"photo_id":"1350180828","filename":"file1"},{"photo_id":"1350180824","filename":"file0"},{"photo_id":"1350180843","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350180853":["hashtag1","hashtag2"]},{"1350180843":["hashtag1","hashtag2"]},{"1350180840":["hashtag1","hashtag2"]},{"1350180828":["hashtag1","hashtag2"]},{"1350180857":["hashtag1","hashtag2"]},{"1350180824":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350180853, 1350180843, 1350180840, 1350180828, 1350180857, 1350180824)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.957130670547485 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 20:12:32.761968
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/20/12/image_06042025_20_12_44_10658.jpg', 2), ('/home/nano/Desktop/images/06042025/20/12/image_06042025_20_12_33_9650.jpg', 2), ('/home/nano/Desktop/images/06042025/20/12/image_06042025_20_12_24_9649.jpg', 2), ('/home/nano/Desktop/images/06042025/20/12/image_06042025_20_12_14_10677.jpg', 2), ('/home/nano/Desktop/images/06042025/20/11/image_06042025_20_12_03_9662.jpg', 2), ('/home/nano/Desktop/images/06042025/20/11/image_06042025_20_11_54_9651.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/20/12/image_06042025_20_12_44_10658.jpg', '/home/nano/Desktop/images/06042025/20/12/image_06042025_20_12_33_9650.jpg', '/home/nano/Desktop/images/06042025/20/12/image_06042025_20_12_24_9649.jpg', '/home/nano/Desktop/images/06042025/20/12/image_06042025_20_12_14_10677.jpg', '/home/nano/Desktop/images/06042025/20/11/image_06042025_20_12_03_9662.jpg', '/home/nano/Desktop/images/06042025/20/11/image_06042025_20_11_54_9651.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/20/12/image_06042025_20_12_44_10658.jpg
/home/nano/Desktop/images/06042025/20/12/image_06042025_20_12_33_9650.jpg
/home/nano/Desktop/images/06042025/20/12/image_06042025_20_12_24_9649.jpg
/home/nano/Desktop/images/06042025/20/12/image_06042025_20_12_14_10677.jpg
/home/nano/Desktop/images/06042025/20/11/image_06042025_20_12_03_9662.jpg
/home/nano/Desktop/images/06042025/20/11/image_06042025_20_11_54_9651.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350180934","1350180937","1350180922","1350180954","1350180918","1350180908"],"photo_ids_order":["1350180908","1350180918","1350180922","1350180934","1350180937","1350180954"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c320cb155416cc21ba6bf8953cb241ba.jpg","text":"TemporaryFile(/tmp/multipartBody805526696574833773asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963214468,"filename":"image_06042025_20_12_14_10677.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/6aa78745adcd7e8e3945f274c04b6dd4.jpg","text":"TemporaryFile(/tmp/multipartBody1863860592927853794asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963214468,"filename":"image_06042025_20_12_03_9662.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a243b4384d0b2c2ad8beaaf321e056ad.jpg","text":"TemporaryFile(/tmp/multipartBody2068641843056888112asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963214468,"filename":"image_06042025_20_12_24_9649.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/dfdd3dcbb928287958c45908202d21a3.jpg","text":"TemporaryFile(/tmp/multipartBody2186084337661550020asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963214468,"filename":"image_06042025_20_11_54_9651.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/96589e4f0e91ada4c21f8efb073caf29.jpg","text":"TemporaryFile(/tmp/multipartBody397390360959627721asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963214468,"filename":"image_06042025_20_12_33_9650.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/2ad4775394f29de2f0fb01f0bd595e4a.jpg","text":"TemporaryFile(/tmp/multipartBody3442726980150409434asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963214468,"filename":"image_06042025_20_12_44_10658.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350180922","file1":"1350180918","file0":"1350180908","file4":"1350180937","file5":"1350180954","file3":"1350180934"},"map_files_photo_id_array":[{"photo_id":"1350180954","filename":"file5"},{"photo_id":"1350180922","filename":"file2"},{"photo_id":"1350180937","filename":"file4"},{"photo_id":"1350180918","filename":"file1"},{"photo_id":"1350180908","filename":"file0"},{"photo_id":"1350180934","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350180934":["hashtag1","hashtag2"]},{"1350180937":["hashtag1","hashtag2"]},{"1350180922":["hashtag1","hashtag2"]},{"1350180954":["hashtag1","hashtag2"]},{"1350180918":["hashtag1","hashtag2"]},{"1350180908":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350180934, 1350180937, 1350180922, 1350180954, 1350180918, 1350180908)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 37.805487632751465 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 20:13:31.849680
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/20/13/image_06042025_20_13_44_10650.jpg', 2), ('/home/nano/Desktop/images/06042025/20/13/image_06042025_20_13_33_9643.jpg', 2), ('/home/nano/Desktop/images/06042025/20/13/image_06042025_20_13_24_9641.jpg', 2), ('/home/nano/Desktop/images/06042025/20/13/image_06042025_20_13_14_10673.jpg', 2), ('/home/nano/Desktop/images/06042025/20/12/image_06042025_20_13_03_9648.jpg', 2), ('/home/nano/Desktop/images/06042025/20/12/image_06042025_20_12_54_9649.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/20/13/image_06042025_20_13_44_10650.jpg', '/home/nano/Desktop/images/06042025/20/13/image_06042025_20_13_33_9643.jpg', '/home/nano/Desktop/images/06042025/20/13/image_06042025_20_13_24_9641.jpg', '/home/nano/Desktop/images/06042025/20/13/image_06042025_20_13_14_10673.jpg', '/home/nano/Desktop/images/06042025/20/12/image_06042025_20_13_03_9648.jpg', '/home/nano/Desktop/images/06042025/20/12/image_06042025_20_12_54_9649.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/20/13/image_06042025_20_13_44_10650.jpg
/home/nano/Desktop/images/06042025/20/13/image_06042025_20_13_33_9643.jpg
/home/nano/Desktop/images/06042025/20/13/image_06042025_20_13_24_9641.jpg
/home/nano/Desktop/images/06042025/20/13/image_06042025_20_13_14_10673.jpg
/home/nano/Desktop/images/06042025/20/12/image_06042025_20_13_03_9648.jpg
/home/nano/Desktop/images/06042025/20/12/image_06042025_20_12_54_9649.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350181041","1350181038","1350181028","1350181043","1350181033","1350181012"],"photo_ids_order":["1350181012","1350181028","1350181033","1350181038","1350181041","1350181043"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/0c79e590ef6e113d50433e6c8e2b0c12.jpg","text":"TemporaryFile(/tmp/multipartBody8603918989614272884asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963273609,"filename":"image_06042025_20_13_03_9648.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f4ea5cf789de124530261c98cce400ff.jpg","text":"TemporaryFile(/tmp/multipartBody7513455291657955022asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963273609,"filename":"image_06042025_20_13_14_10673.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b6cba71e9917eb361d5db3bf39c65ab0.jpg","text":"TemporaryFile(/tmp/multipartBody7916877718803534224asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963273609,"filename":"image_06042025_20_13_33_9643.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/043f5f4489125c73b3f907db32da059d.jpg","text":"TemporaryFile(/tmp/multipartBody1489548809525987221asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963273609,"filename":"image_06042025_20_12_54_9649.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/1a84247ce1f07c7de16fdcad573ea48b.jpg","text":"TemporaryFile(/tmp/multipartBody6755284173458663873asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963273609,"filename":"image_06042025_20_13_24_9641.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/8852a9e9500d980fa11197870d6e7210.jpg","text":"TemporaryFile(/tmp/multipartBody5192765921672180995asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963273609,"filename":"image_06042025_20_13_44_10650.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350181033","file1":"1350181028","file0":"1350181012","file4":"1350181041","file5":"1350181043","file3":"1350181038"},"map_files_photo_id_array":[{"photo_id":"1350181043","filename":"file5"},{"photo_id":"1350181033","filename":"file2"},{"photo_id":"1350181041","filename":"file4"},{"photo_id":"1350181028","filename":"file1"},{"photo_id":"1350181012","filename":"file0"},{"photo_id":"1350181038","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350181041":["hashtag1","hashtag2"]},{"1350181038":["hashtag1","hashtag2"]},{"1350181028":["hashtag1","hashtag2"]},{"1350181043":["hashtag1","hashtag2"]},{"1350181033":["hashtag1","hashtag2"]},{"1350181012":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350181041, 1350181038, 1350181028, 1350181043, 1350181033, 1350181012)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.864417552948 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 20:14:31.953757
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/20/14/image_06042025_20_14_44_9641.jpg', 2), ('/home/nano/Desktop/images/06042025/20/14/image_06042025_20_14_34_10651.jpg', 2), ('/home/nano/Desktop/images/06042025/20/14/image_06042025_20_14_14_10672.jpg', 2), ('/home/nano/Desktop/images/06042025/20/13/image_06042025_20_14_03_9642.jpg', 2), ('/home/nano/Desktop/images/06042025/20/13/image_06042025_20_13_54_9636.jpg', 2), ('/home/nano/Desktop/images/06042025/20/06/image_06042025_20_07_03_9797.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/20/14/image_06042025_20_14_44_9641.jpg', '/home/nano/Desktop/images/06042025/20/14/image_06042025_20_14_34_10651.jpg', '/home/nano/Desktop/images/06042025/20/14/image_06042025_20_14_14_10672.jpg', '/home/nano/Desktop/images/06042025/20/13/image_06042025_20_14_03_9642.jpg', '/home/nano/Desktop/images/06042025/20/13/image_06042025_20_13_54_9636.jpg', '/home/nano/Desktop/images/06042025/20/06/image_06042025_20_07_03_9797.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/20/14/image_06042025_20_14_44_9641.jpg
/home/nano/Desktop/images/06042025/20/14/image_06042025_20_14_34_10651.jpg
/home/nano/Desktop/images/06042025/20/14/image_06042025_20_14_14_10672.jpg
/home/nano/Desktop/images/06042025/20/13/image_06042025_20_14_03_9642.jpg
/home/nano/Desktop/images/06042025/20/13/image_06042025_20_13_54_9636.jpg
/home/nano/Desktop/images/06042025/20/06/image_06042025_20_07_03_9797.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350181059","1350181067","1350181075","1350181063","1350181072","1350181066"],"photo_ids_order":["1350181059","1350181063","1350181066","1350181067","1350181072","1350181075"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e98f7a1fb76f2d2e962e6fec21171b8d.jpg","text":"TemporaryFile(/tmp/multipartBody4412033370760093941asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963333779,"filename":"image_06042025_20_14_44_9641.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/9cde99112ac0487854bdafc7adfcbb40.jpg","text":"TemporaryFile(/tmp/multipartBody771942681733927706asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963333779,"filename":"image_06042025_20_14_03_9642.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/82297f3802a83fe9ca038af2b5d49f6e.jpg","text":"TemporaryFile(/tmp/multipartBody3852013339387874326asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963333779,"filename":"image_06042025_20_07_03_9797.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b45a17db7fad15032f296e5494ba386c.jpg","text":"TemporaryFile(/tmp/multipartBody3923064878600771817asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963333779,"filename":"image_06042025_20_14_34_10651.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/0e511c15b23adf70e98dda82cfd87117.jpg","text":"TemporaryFile(/tmp/multipartBody596329953888275170asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963333779,"filename":"image_06042025_20_13_54_9636.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/61c4061db8249718b14eb5c409f47b94.jpg","text":"TemporaryFile(/tmp/multipartBody1192105025445397162asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963333779,"filename":"image_06042025_20_14_14_10672.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350181066","file1":"1350181063","file0":"1350181059","file4":"1350181072","file5":"1350181075","file3":"1350181067"},"map_files_photo_id_array":[{"photo_id":"1350181075","filename":"file5"},{"photo_id":"1350181066","filename":"file2"},{"photo_id":"1350181072","filename":"file4"},{"photo_id":"1350181063","filename":"file1"},{"photo_id":"1350181059","filename":"file0"},{"photo_id":"1350181067","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350181059":["hashtag1","hashtag2"]},{"1350181067":["hashtag1","hashtag2"]},{"1350181075":["hashtag1","hashtag2"]},{"1350181063":["hashtag1","hashtag2"]},{"1350181072":["hashtag1","hashtag2"]},{"1350181066":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350181059, 1350181067, 1350181075, 1350181063, 1350181072, 1350181066)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.280224561691284 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 20:15:32.057749
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/20/15/image_06042025_20_15_44_9640.jpg', 2), ('/home/nano/Desktop/images/06042025/20/15/image_06042025_20_15_34_10648.jpg', 2), ('/home/nano/Desktop/images/06042025/20/15/image_06042025_20_15_14_9676.jpg', 2), ('/home/nano/Desktop/images/06042025/20/14/image_06042025_20_15_04_10672.jpg', 2), ('/home/nano/Desktop/images/06042025/20/14/image_06042025_20_14_53_9654.jpg', 2), ('/home/nano/Desktop/images/06042025/20/06/image_06042025_20_06_54_9780.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/20/15/image_06042025_20_15_44_9640.jpg', '/home/nano/Desktop/images/06042025/20/15/image_06042025_20_15_34_10648.jpg', '/home/nano/Desktop/images/06042025/20/15/image_06042025_20_15_14_9676.jpg', '/home/nano/Desktop/images/06042025/20/14/image_06042025_20_15_04_10672.jpg', '/home/nano/Desktop/images/06042025/20/14/image_06042025_20_14_53_9654.jpg', '/home/nano/Desktop/images/06042025/20/06/image_06042025_20_06_54_9780.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/20/15/image_06042025_20_15_44_9640.jpg
/home/nano/Desktop/images/06042025/20/15/image_06042025_20_15_34_10648.jpg
/home/nano/Desktop/images/06042025/20/15/image_06042025_20_15_14_9676.jpg
/home/nano/Desktop/images/06042025/20/14/image_06042025_20_15_04_10672.jpg
/home/nano/Desktop/images/06042025/20/14/image_06042025_20_14_53_9654.jpg
/home/nano/Desktop/images/06042025/20/06/image_06042025_20_06_54_9780.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350181149","1350181139","1350181096","1350181099","1350181144","1350181123"],"photo_ids_order":["1350181096","1350181099","1350181123","1350181139","1350181144","1350181149"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b99e673b93d758a37ab4d951b58935a8.jpg","text":"TemporaryFile(/tmp/multipartBody3536574170253132050asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963393519,"filename":"image_06042025_20_06_54_9780.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b1d690810028d6764a7932a43dbf9cd9.jpg","text":"TemporaryFile(/tmp/multipartBody8014180943536775243asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963393519,"filename":"image_06042025_20_15_04_10672.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ba045c0155437a025d62d49cf4d5826e.jpg","text":"TemporaryFile(/tmp/multipartBody6989298484611007237asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963393519,"filename":"image_06042025_20_15_44_9640.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/da435ea5c1b9c85c929d2d4bddf401ce.jpg","text":"TemporaryFile(/tmp/multipartBody1946288760215354348asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963393519,"filename":"image_06042025_20_15_34_10648.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/bade1a65704d933685709bd7c35729e6.jpg","text":"TemporaryFile(/tmp/multipartBody1075639975467168142asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963393519,"filename":"image_06042025_20_14_53_9654.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/8c68fe8afd09cbd5193d0fb41181ce6e.jpg","text":"TemporaryFile(/tmp/multipartBody2413178338720142276asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963393519,"filename":"image_06042025_20_15_14_9676.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350181123","file1":"1350181099","file0":"1350181096","file4":"1350181144","file5":"1350181149","file3":"1350181139"},"map_files_photo_id_array":[{"photo_id":"1350181149","filename":"file5"},{"photo_id":"1350181123","filename":"file2"},{"photo_id":"1350181144","filename":"file4"},{"photo_id":"1350181099","filename":"file1"},{"photo_id":"1350181096","filename":"file0"},{"photo_id":"1350181139","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350181149":["hashtag1","hashtag2"]},{"1350181139":["hashtag1","hashtag2"]},{"1350181096":["hashtag1","hashtag2"]},{"1350181099":["hashtag1","hashtag2"]},{"1350181144":["hashtag1","hashtag2"]},{"1350181123":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350181149, 1350181139, 1350181096, 1350181099, 1350181144, 1350181123)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.74128580093384 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 20:16:32.176879
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/20/16/image_06042025_20_16_44_9766.jpg', 2), ('/home/nano/Desktop/images/06042025/20/16/image_06042025_20_16_34_10779.jpg', 2), ('/home/nano/Desktop/images/06042025/20/16/image_06042025_20_16_23_9673.jpg', 2), ('/home/nano/Desktop/images/06042025/20/16/image_06042025_20_16_14_9662.jpg', 2), ('/home/nano/Desktop/images/06042025/20/15/image_06042025_20_16_04_10653.jpg', 2), ('/home/nano/Desktop/images/06042025/20/15/image_06042025_20_15_53_9639.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/20/16/image_06042025_20_16_44_9766.jpg', '/home/nano/Desktop/images/06042025/20/16/image_06042025_20_16_34_10779.jpg', '/home/nano/Desktop/images/06042025/20/16/image_06042025_20_16_23_9673.jpg', '/home/nano/Desktop/images/06042025/20/16/image_06042025_20_16_14_9662.jpg', '/home/nano/Desktop/images/06042025/20/15/image_06042025_20_16_04_10653.jpg', '/home/nano/Desktop/images/06042025/20/15/image_06042025_20_15_53_9639.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/20/16/image_06042025_20_16_44_9766.jpg
/home/nano/Desktop/images/06042025/20/16/image_06042025_20_16_34_10779.jpg
/home/nano/Desktop/images/06042025/20/16/image_06042025_20_16_23_9673.jpg
/home/nano/Desktop/images/06042025/20/16/image_06042025_20_16_14_9662.jpg
/home/nano/Desktop/images/06042025/20/15/image_06042025_20_16_04_10653.jpg
/home/nano/Desktop/images/06042025/20/15/image_06042025_20_15_53_9639.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350181228","1350181251","1350181254","1350181221","1350181245","1350181241"],"photo_ids_order":["1350181221","1350181228","1350181241","1350181245","1350181251","1350181254"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/49f230cc44f29372abeaa68b57ffe614.jpg","text":"TemporaryFile(/tmp/multipartBody8335358808313434081asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963454429,"filename":"image_06042025_20_16_34_10779.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/611890d99b1bfeae7aeb5ababe080d92.jpg","text":"TemporaryFile(/tmp/multipartBody7250658046801167020asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963454429,"filename":"image_06042025_20_16_04_10653.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4e57831da2dc010e4ea184ac97348e96.jpg","text":"TemporaryFile(/tmp/multipartBody5129123828127000004asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963454429,"filename":"image_06042025_20_15_53_9639.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a942985471afab5e603ae5b915365675.jpg","text":"TemporaryFile(/tmp/multipartBody3790922795318745004asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963454429,"filename":"image_06042025_20_16_44_9766.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/2d7339aa7d601e05210e6676b340dd98.jpg","text":"TemporaryFile(/tmp/multipartBody1184707167876415282asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963454429,"filename":"image_06042025_20_16_14_9662.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/cba176d0ab7346fc2e5d629dc4abd18f.jpg","text":"TemporaryFile(/tmp/multipartBody8384879146270978137asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963454429,"filename":"image_06042025_20_16_23_9673.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350181241","file1":"1350181228","file0":"1350181221","file4":"1350181251","file5":"1350181254","file3":"1350181245"},"map_files_photo_id_array":[{"photo_id":"1350181254","filename":"file5"},{"photo_id":"1350181241","filename":"file2"},{"photo_id":"1350181251","filename":"file4"},{"photo_id":"1350181228","filename":"file1"},{"photo_id":"1350181221","filename":"file0"},{"photo_id":"1350181245","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350181228":["hashtag1","hashtag2"]},{"1350181251":["hashtag1","hashtag2"]},{"1350181254":["hashtag1","hashtag2"]},{"1350181221":["hashtag1","hashtag2"]},{"1350181245":["hashtag1","hashtag2"]},{"1350181241":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350181228, 1350181251, 1350181254, 1350181221, 1350181245, 1350181241)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.755125284194946 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 20:17:32.244507
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/20/17/image_06042025_20_17_44_10652.jpg', 2), ('/home/nano/Desktop/images/06042025/20/17/image_06042025_20_17_24_9641.jpg', 2), ('/home/nano/Desktop/images/06042025/20/17/image_06042025_20_17_14_10667.jpg', 2), ('/home/nano/Desktop/images/06042025/20/16/image_06042025_20_17_03_9766.jpg', 2), ('/home/nano/Desktop/images/06042025/20/16/image_06042025_20_16_54_9769.jpg', 2), ('/home/nano/Desktop/images/06042025/20/02/image_06042025_20_02_33_9644.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/20/17/image_06042025_20_17_44_10652.jpg', '/home/nano/Desktop/images/06042025/20/17/image_06042025_20_17_24_9641.jpg', '/home/nano/Desktop/images/06042025/20/17/image_06042025_20_17_14_10667.jpg', '/home/nano/Desktop/images/06042025/20/16/image_06042025_20_17_03_9766.jpg', '/home/nano/Desktop/images/06042025/20/16/image_06042025_20_16_54_9769.jpg', '/home/nano/Desktop/images/06042025/20/02/image_06042025_20_02_33_9644.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/20/17/image_06042025_20_17_44_10652.jpg
/home/nano/Desktop/images/06042025/20/17/image_06042025_20_17_24_9641.jpg
/home/nano/Desktop/images/06042025/20/17/image_06042025_20_17_14_10667.jpg
/home/nano/Desktop/images/06042025/20/16/image_06042025_20_17_03_9766.jpg
/home/nano/Desktop/images/06042025/20/16/image_06042025_20_16_54_9769.jpg
/home/nano/Desktop/images/06042025/20/02/image_06042025_20_02_33_9644.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350181275","1350181286","1350181291","1350181267","1350181282","1350181270"],"photo_ids_order":["1350181267","1350181270","1350181275","1350181282","1350181286","1350181291"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b1c4535ba17504196a4639b77d92b51b.jpg","text":"TemporaryFile(/tmp/multipartBody7551471300403884782asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963513527,"filename":"image_06042025_20_17_14_10667.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/49b41d70f6bea1b10ebc67bd083ff706.jpg","text":"TemporaryFile(/tmp/multipartBody8734298167818328198asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963513527,"filename":"image_06042025_20_16_54_9769.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/05ba8d7861b727b4a51c1dd3e5c1726d.jpg","text":"TemporaryFile(/tmp/multipartBody2456909596461511793asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963513527,"filename":"image_06042025_20_02_33_9644.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a55fe22f7ec2de20d52e4ad97e802421.jpg","text":"TemporaryFile(/tmp/multipartBody8253027100512369790asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963513527,"filename":"image_06042025_20_17_44_10652.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/94b7d85b949987601d86a2c32bc5a070.jpg","text":"TemporaryFile(/tmp/multipartBody6586572053810476251asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963513527,"filename":"image_06042025_20_17_03_9766.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b318716dc8665f79e25481c4bcc456e3.jpg","text":"TemporaryFile(/tmp/multipartBody808291724733062161asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963513527,"filename":"image_06042025_20_17_24_9641.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350181275","file1":"1350181270","file0":"1350181267","file4":"1350181286","file5":"1350181291","file3":"1350181282"},"map_files_photo_id_array":[{"photo_id":"1350181291","filename":"file5"},{"photo_id":"1350181275","filename":"file2"},{"photo_id":"1350181286","filename":"file4"},{"photo_id":"1350181270","filename":"file1"},{"photo_id":"1350181267","filename":"file0"},{"photo_id":"1350181282","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350181275":["hashtag1","hashtag2"]},{"1350181286":["hashtag1","hashtag2"]},{"1350181291":["hashtag1","hashtag2"]},{"1350181267":["hashtag1","hashtag2"]},{"1350181282":["hashtag1","hashtag2"]},{"1350181270":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350181275, 1350181286, 1350181291, 1350181267, 1350181282, 1350181270)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.642112255096436 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 20:18:32.354500
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/20/18/image_06042025_20_18_44_10645.jpg', 2), ('/home/nano/Desktop/images/06042025/20/18/image_06042025_20_18_33_9637.jpg', 2), ('/home/nano/Desktop/images/06042025/20/18/image_06042025_20_18_24_9646.jpg', 2), ('/home/nano/Desktop/images/06042025/20/18/image_06042025_20_18_14_10674.jpg', 2), ('/home/nano/Desktop/images/06042025/20/17/image_06042025_20_18_03_9651.jpg', 2), ('/home/nano/Desktop/images/06042025/20/17/image_06042025_20_17_54_9639.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/20/18/image_06042025_20_18_44_10645.jpg', '/home/nano/Desktop/images/06042025/20/18/image_06042025_20_18_33_9637.jpg', '/home/nano/Desktop/images/06042025/20/18/image_06042025_20_18_24_9646.jpg', '/home/nano/Desktop/images/06042025/20/18/image_06042025_20_18_14_10674.jpg', '/home/nano/Desktop/images/06042025/20/17/image_06042025_20_18_03_9651.jpg', '/home/nano/Desktop/images/06042025/20/17/image_06042025_20_17_54_9639.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/20/18/image_06042025_20_18_44_10645.jpg
/home/nano/Desktop/images/06042025/20/18/image_06042025_20_18_33_9637.jpg
/home/nano/Desktop/images/06042025/20/18/image_06042025_20_18_24_9646.jpg
/home/nano/Desktop/images/06042025/20/18/image_06042025_20_18_14_10674.jpg
/home/nano/Desktop/images/06042025/20/17/image_06042025_20_18_03_9651.jpg
/home/nano/Desktop/images/06042025/20/17/image_06042025_20_17_54_9639.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350181467","1350181452","1350181502","1350181471","1350181393","1350181441"],"photo_ids_order":["1350181393","1350181441","1350181452","1350181467","1350181471","1350181502"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/673c50f7a41e6e6a95677cb186033f26.jpg","text":"TemporaryFile(/tmp/multipartBody7878372614585222681asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963573747,"filename":"image_06042025_20_18_14_10674.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a3de44bd3ca285b6f190a37c95c2a8ba.jpg","text":"TemporaryFile(/tmp/multipartBody1009010816026379881asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963573747,"filename":"image_06042025_20_18_24_9646.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/80fa5cda05d7b2117664c97ab0e9b0e7.jpg","text":"TemporaryFile(/tmp/multipartBody4418457056396923522asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963573747,"filename":"image_06042025_20_17_54_9639.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ed7dcabf6c554f95d229237eb85442f8.jpg","text":"TemporaryFile(/tmp/multipartBody2455093869174001785asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963573747,"filename":"image_06042025_20_18_03_9651.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/cf1a839596ff4e91fb2b8915a5ec86f1.jpg","text":"TemporaryFile(/tmp/multipartBody7447750620548364265asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963573747,"filename":"image_06042025_20_18_44_10645.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c18569f8a8d767c639a1054f11e88916.jpg","text":"TemporaryFile(/tmp/multipartBody4200871597571133667asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963573747,"filename":"image_06042025_20_18_33_9637.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350181452","file1":"1350181441","file0":"1350181393","file4":"1350181471","file5":"1350181502","file3":"1350181467"},"map_files_photo_id_array":[{"photo_id":"1350181502","filename":"file5"},{"photo_id":"1350181452","filename":"file2"},{"photo_id":"1350181471","filename":"file4"},{"photo_id":"1350181441","filename":"file1"},{"photo_id":"1350181393","filename":"file0"},{"photo_id":"1350181467","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350181467":["hashtag1","hashtag2"]},{"1350181452":["hashtag1","hashtag2"]},{"1350181502":["hashtag1","hashtag2"]},{"1350181471":["hashtag1","hashtag2"]},{"1350181393":["hashtag1","hashtag2"]},{"1350181441":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350181467, 1350181452, 1350181502, 1350181471, 1350181393, 1350181441)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.30922031402588 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 20:19:32.455732
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/20/19/image_06042025_20_19_43_9767.jpg', 2), ('/home/nano/Desktop/images/06042025/20/19/image_06042025_20_19_34_9772.jpg', 2), ('/home/nano/Desktop/images/06042025/20/19/image_06042025_20_19_24_9769.jpg', 2), ('/home/nano/Desktop/images/06042025/20/19/image_06042025_20_19_14_10803.jpg', 2), ('/home/nano/Desktop/images/06042025/20/18/image_06042025_20_19_03_9777.jpg', 2), ('/home/nano/Desktop/images/06042025/20/18/image_06042025_20_18_54_9636.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/20/19/image_06042025_20_19_43_9767.jpg', '/home/nano/Desktop/images/06042025/20/19/image_06042025_20_19_34_9772.jpg', '/home/nano/Desktop/images/06042025/20/19/image_06042025_20_19_24_9769.jpg', '/home/nano/Desktop/images/06042025/20/19/image_06042025_20_19_14_10803.jpg', '/home/nano/Desktop/images/06042025/20/18/image_06042025_20_19_03_9777.jpg', '/home/nano/Desktop/images/06042025/20/18/image_06042025_20_18_54_9636.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/20/19/image_06042025_20_19_43_9767.jpg
/home/nano/Desktop/images/06042025/20/19/image_06042025_20_19_34_9772.jpg
/home/nano/Desktop/images/06042025/20/19/image_06042025_20_19_24_9769.jpg
/home/nano/Desktop/images/06042025/20/19/image_06042025_20_19_14_10803.jpg
/home/nano/Desktop/images/06042025/20/18/image_06042025_20_19_03_9777.jpg
/home/nano/Desktop/images/06042025/20/18/image_06042025_20_18_54_9636.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350181668","1350181665","1350181673","1350181574","1350181577","1350181658"],"photo_ids_order":["1350181574","1350181577","1350181658","1350181665","1350181668","1350181673"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e3488cf7572053b95641440e85005c8c.jpg","text":"TemporaryFile(/tmp/multipartBody7591852588362747397asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963635835,"filename":"image_06042025_20_19_03_9777.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/7e790767170a52baa73f4cffdb19f2a8.jpg","text":"TemporaryFile(/tmp/multipartBody5339082269398588613asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963635835,"filename":"image_06042025_20_19_14_10803.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/3e5087336acc5f552e6d4581df260ebf.jpg","text":"TemporaryFile(/tmp/multipartBody1830122255403305558asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963635835,"filename":"image_06042025_20_18_54_9636.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/034657bf5b8121511fedc7bb3ae38e56.jpg","text":"TemporaryFile(/tmp/multipartBody3317533133018708976asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963635835,"filename":"image_06042025_20_19_43_9767.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/30cead59ae5b0c43ca7a7ab24bb8eb41.jpg","text":"TemporaryFile(/tmp/multipartBody5382591171497246662asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963635835,"filename":"image_06042025_20_19_34_9772.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c844af3a3db8090879377931324a57b3.jpg","text":"TemporaryFile(/tmp/multipartBody2568377463502189648asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963635835,"filename":"image_06042025_20_19_24_9769.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350181658","file1":"1350181577","file0":"1350181574","file4":"1350181668","file5":"1350181673","file3":"1350181665"},"map_files_photo_id_array":[{"photo_id":"1350181673","filename":"file5"},{"photo_id":"1350181658","filename":"file2"},{"photo_id":"1350181668","filename":"file4"},{"photo_id":"1350181577","filename":"file1"},{"photo_id":"1350181574","filename":"file0"},{"photo_id":"1350181665","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350181668":["hashtag1","hashtag2"]},{"1350181665":["hashtag1","hashtag2"]},{"1350181673":["hashtag1","hashtag2"]},{"1350181574":["hashtag1","hashtag2"]},{"1350181577":["hashtag1","hashtag2"]},{"1350181658":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350181668, 1350181665, 1350181673, 1350181574, 1350181577, 1350181658)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.421908378601074 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 20:20:32.512977
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/20/20/image_06042025_20_20_44_10767.jpg', 2), ('/home/nano/Desktop/images/06042025/20/20/image_06042025_20_20_33_9772.jpg', 2), ('/home/nano/Desktop/images/06042025/20/20/image_06042025_20_20_14_9786.jpg', 2), ('/home/nano/Desktop/images/06042025/20/19/image_06042025_20_20_04_10785.jpg', 2), ('/home/nano/Desktop/images/06042025/20/19/image_06042025_20_19_53_9794.jpg', 2), ('/home/nano/Desktop/images/06042025/20/02/image_06042025_20_02_14_10674.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/20/20/image_06042025_20_20_44_10767.jpg', '/home/nano/Desktop/images/06042025/20/20/image_06042025_20_20_33_9772.jpg', '/home/nano/Desktop/images/06042025/20/20/image_06042025_20_20_14_9786.jpg', '/home/nano/Desktop/images/06042025/20/19/image_06042025_20_20_04_10785.jpg', '/home/nano/Desktop/images/06042025/20/19/image_06042025_20_19_53_9794.jpg', '/home/nano/Desktop/images/06042025/20/02/image_06042025_20_02_14_10674.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/20/20/image_06042025_20_20_44_10767.jpg
/home/nano/Desktop/images/06042025/20/20/image_06042025_20_20_33_9772.jpg
/home/nano/Desktop/images/06042025/20/20/image_06042025_20_20_14_9786.jpg
/home/nano/Desktop/images/06042025/20/19/image_06042025_20_20_04_10785.jpg
/home/nano/Desktop/images/06042025/20/19/image_06042025_20_19_53_9794.jpg
/home/nano/Desktop/images/06042025/20/02/image_06042025_20_02_14_10674.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350181938","1350181859","1350181844","1350181847","1350181934","1350181927"],"photo_ids_order":["1350181844","1350181847","1350181859","1350181927","1350181934","1350181938"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/9dac9083b79a609ef2a9581219d8a6e3.jpg","text":"TemporaryFile(/tmp/multipartBody1484161544835366527asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963694709,"filename":"image_06042025_20_02_14_10674.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/2971104dc0c68de02f625ab6925ac149.jpg","text":"TemporaryFile(/tmp/multipartBody4091493351640656762asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963694709,"filename":"image_06042025_20_20_14_9786.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/5f3495f78ad98867c348479fcab20ddf.jpg","text":"TemporaryFile(/tmp/multipartBody4864931281764097625asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963694709,"filename":"image_06042025_20_20_44_10767.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/8da35f4ea044cd1c84d9b4cb56a94559.jpg","text":"TemporaryFile(/tmp/multipartBody4051417626450273464asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963694709,"filename":"image_06042025_20_20_33_9772.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/5a57185a5aebb0a3f66a1c6535359831.jpg","text":"TemporaryFile(/tmp/multipartBody1478445883438774963asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963694709,"filename":"image_06042025_20_19_53_9794.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/7f706f24613f62b87f262c675733e428.jpg","text":"TemporaryFile(/tmp/multipartBody8879277126791668065asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963694709,"filename":"image_06042025_20_20_04_10785.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350181859","file1":"1350181847","file0":"1350181844","file4":"1350181934","file5":"1350181938","file3":"1350181927"},"map_files_photo_id_array":[{"photo_id":"1350181938","filename":"file5"},{"photo_id":"1350181859","filename":"file2"},{"photo_id":"1350181934","filename":"file4"},{"photo_id":"1350181847","filename":"file1"},{"photo_id":"1350181844","filename":"file0"},{"photo_id":"1350181927","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350181938":["hashtag1","hashtag2"]},{"1350181859":["hashtag1","hashtag2"]},{"1350181844":["hashtag1","hashtag2"]},{"1350181847":["hashtag1","hashtag2"]},{"1350181934":["hashtag1","hashtag2"]},{"1350181927":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350181938, 1350181859, 1350181844, 1350181847, 1350181934, 1350181927)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 49.43081092834473 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 20:21:32.600345
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/20/21/image_06042025_20_21_43_9653.jpg', 2), ('/home/nano/Desktop/images/06042025/20/21/image_06042025_20_21_34_9653.jpg', 2), ('/home/nano/Desktop/images/06042025/20/21/image_06042025_20_21_24_10689.jpg', 2), ('/home/nano/Desktop/images/06042025/20/21/image_06042025_20_21_13_9711.jpg', 2), ('/home/nano/Desktop/images/06042025/20/20/image_06042025_20_21_04_9789.jpg', 2), ('/home/nano/Desktop/images/06042025/20/20/image_06042025_20_20_54_9758.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/20/21/image_06042025_20_21_43_9653.jpg', '/home/nano/Desktop/images/06042025/20/21/image_06042025_20_21_34_9653.jpg', '/home/nano/Desktop/images/06042025/20/21/image_06042025_20_21_24_10689.jpg', '/home/nano/Desktop/images/06042025/20/21/image_06042025_20_21_13_9711.jpg', '/home/nano/Desktop/images/06042025/20/20/image_06042025_20_21_04_9789.jpg', '/home/nano/Desktop/images/06042025/20/20/image_06042025_20_20_54_9758.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/20/21/image_06042025_20_21_43_9653.jpg
/home/nano/Desktop/images/06042025/20/21/image_06042025_20_21_34_9653.jpg
/home/nano/Desktop/images/06042025/20/21/image_06042025_20_21_24_10689.jpg
/home/nano/Desktop/images/06042025/20/21/image_06042025_20_21_13_9711.jpg
/home/nano/Desktop/images/06042025/20/20/image_06042025_20_21_04_9789.jpg
/home/nano/Desktop/images/06042025/20/20/image_06042025_20_20_54_9758.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 2.5145671367645264 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 20:22:03.202871
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/20/21/image_06042025_20_21_43_9653.jpg', 2), ('/home/nano/Desktop/images/06042025/20/21/image_06042025_20_21_34_9653.jpg', 2), ('/home/nano/Desktop/images/06042025/20/21/image_06042025_20_21_24_10689.jpg', 2), ('/home/nano/Desktop/images/06042025/20/21/image_06042025_20_21_13_9711.jpg', 2), ('/home/nano/Desktop/images/06042025/20/20/image_06042025_20_21_04_9789.jpg', 2), ('/home/nano/Desktop/images/06042025/20/20/image_06042025_20_20_54_9758.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/20/21/image_06042025_20_21_43_9653.jpg', '/home/nano/Desktop/images/06042025/20/21/image_06042025_20_21_34_9653.jpg', '/home/nano/Desktop/images/06042025/20/21/image_06042025_20_21_24_10689.jpg', '/home/nano/Desktop/images/06042025/20/21/image_06042025_20_21_13_9711.jpg', '/home/nano/Desktop/images/06042025/20/20/image_06042025_20_21_04_9789.jpg', '/home/nano/Desktop/images/06042025/20/20/image_06042025_20_20_54_9758.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/20/21/image_06042025_20_21_43_9653.jpg
/home/nano/Desktop/images/06042025/20/21/image_06042025_20_21_34_9653.jpg
/home/nano/Desktop/images/06042025/20/21/image_06042025_20_21_24_10689.jpg
/home/nano/Desktop/images/06042025/20/21/image_06042025_20_21_13_9711.jpg
/home/nano/Desktop/images/06042025/20/20/image_06042025_20_21_04_9789.jpg
/home/nano/Desktop/images/06042025/20/20/image_06042025_20_20_54_9758.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350182112","1350182115","1350182109","1350182117","1350182119","1350182113"],"photo_ids_order":["1350182109","1350182112","1350182113","1350182115","1350182117","1350182119"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4ac8e55ad8383f17f10bd0fe1760f955.jpg","text":"TemporaryFile(/tmp/multipartBody6919401976639849217asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963784792,"filename":"image_06042025_20_21_34_9653.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f689ce567cbe635a4fe637edeede7e0c.jpg","text":"TemporaryFile(/tmp/multipartBody2874906505898785773asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963784792,"filename":"image_06042025_20_21_13_9711.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/367a85dcef16806b3796d38c853775cd.jpg","text":"TemporaryFile(/tmp/multipartBody810337111630524846asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963784792,"filename":"image_06042025_20_21_43_9653.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a18939269ed29720b0af9ce6c3dc1bb3.jpg","text":"TemporaryFile(/tmp/multipartBody2818766528928557244asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963784792,"filename":"image_06042025_20_21_04_9789.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/eaf1a093a0301fc7dbb39d39ff76082e.jpg","text":"TemporaryFile(/tmp/multipartBody6834969868602224129asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963784792,"filename":"image_06042025_20_20_54_9758.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/6fd9034ba6bbede32f0349155f4a9e81.jpg","text":"TemporaryFile(/tmp/multipartBody7235891336043131944asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963784792,"filename":"image_06042025_20_21_24_10689.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350182113","file1":"1350182112","file0":"1350182109","file4":"1350182117","file5":"1350182119","file3":"1350182115"},"map_files_photo_id_array":[{"photo_id":"1350182119","filename":"file5"},{"photo_id":"1350182113","filename":"file2"},{"photo_id":"1350182117","filename":"file4"},{"photo_id":"1350182112","filename":"file1"},{"photo_id":"1350182109","filename":"file0"},{"photo_id":"1350182115","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350182112":["hashtag1","hashtag2"]},{"1350182115":["hashtag1","hashtag2"]},{"1350182109":["hashtag1","hashtag2"]},{"1350182117":["hashtag1","hashtag2"]},{"1350182119":["hashtag1","hashtag2"]},{"1350182113":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350182112, 1350182115, 1350182109, 1350182117, 1350182119, 1350182113)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.75209093093872 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 20:23:02.412673
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/20/22/image_06042025_20_22_34_9932.jpg', 2), ('/home/nano/Desktop/images/06042025/20/22/image_06042025_20_22_24_10661.jpg', 2), ('/home/nano/Desktop/images/06042025/20/22/image_06042025_20_22_13_9674.jpg', 2), ('/home/nano/Desktop/images/06042025/20/21/image_06042025_20_22_04_9669.jpg', 2), ('/home/nano/Desktop/images/06042025/20/21/image_06042025_20_21_54_10664.jpg', 2), ('/home/nano/Desktop/images/06042025/20/01/image_06042025_20_02_03_9648.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/20/22/image_06042025_20_22_34_9932.jpg', '/home/nano/Desktop/images/06042025/20/22/image_06042025_20_22_24_10661.jpg', '/home/nano/Desktop/images/06042025/20/22/image_06042025_20_22_13_9674.jpg', '/home/nano/Desktop/images/06042025/20/21/image_06042025_20_22_04_9669.jpg', '/home/nano/Desktop/images/06042025/20/21/image_06042025_20_21_54_10664.jpg', '/home/nano/Desktop/images/06042025/20/01/image_06042025_20_02_03_9648.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/20/22/image_06042025_20_22_34_9932.jpg
/home/nano/Desktop/images/06042025/20/22/image_06042025_20_22_24_10661.jpg
/home/nano/Desktop/images/06042025/20/22/image_06042025_20_22_13_9674.jpg
/home/nano/Desktop/images/06042025/20/21/image_06042025_20_22_04_9669.jpg
/home/nano/Desktop/images/06042025/20/21/image_06042025_20_21_54_10664.jpg
/home/nano/Desktop/images/06042025/20/01/image_06042025_20_02_03_9648.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350182235","1350182177","1350182252","1350182197","1350182215","1350182200"],"photo_ids_order":["1350182177","1350182197","1350182200","1350182215","1350182235","1350182252"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a77b784f756e2341819e82d49ba47a9e.jpg","text":"TemporaryFile(/tmp/multipartBody3324164482243454022asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963844162,"filename":"image_06042025_20_21_54_10664.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c4bdec10af4f3a6f5ae97296450792a6.jpg","text":"TemporaryFile(/tmp/multipartBody2604657567722482972asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963844162,"filename":"image_06042025_20_22_34_9932.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/9ebc2df1677252cf18740a1e753646a6.jpg","text":"TemporaryFile(/tmp/multipartBody1094237154882407521asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963844162,"filename":"image_06042025_20_02_03_9648.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/eec8bcbdde5182d09ec224e41381f2ac.jpg","text":"TemporaryFile(/tmp/multipartBody5304606791523775166asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963844162,"filename":"image_06042025_20_22_24_10661.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/7b500d34f0dd13c06489425b8d86a401.jpg","text":"TemporaryFile(/tmp/multipartBody3720263072764154320asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963844162,"filename":"image_06042025_20_22_04_9669.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b1a47b2f8d1ff9dfff1444d87d7e827e.jpg","text":"TemporaryFile(/tmp/multipartBody3949959062289652016asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963844162,"filename":"image_06042025_20_22_13_9674.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350182200","file1":"1350182197","file0":"1350182177","file4":"1350182235","file5":"1350182252","file3":"1350182215"},"map_files_photo_id_array":[{"photo_id":"1350182252","filename":"file5"},{"photo_id":"1350182200","filename":"file2"},{"photo_id":"1350182235","filename":"file4"},{"photo_id":"1350182197","filename":"file1"},{"photo_id":"1350182177","filename":"file0"},{"photo_id":"1350182215","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350182235":["hashtag1","hashtag2"]},{"1350182177":["hashtag1","hashtag2"]},{"1350182252":["hashtag1","hashtag2"]},{"1350182197":["hashtag1","hashtag2"]},{"1350182215":["hashtag1","hashtag2"]},{"1350182200":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350182235, 1350182177, 1350182252, 1350182197, 1350182215, 1350182200)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.02615165710449 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 20:24:02.603786
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/20/23/image_06042025_20_23_23_9646.jpg', 2), ('/home/nano/Desktop/images/06042025/20/23/image_06042025_20_23_14_9681.jpg', 2), ('/home/nano/Desktop/images/06042025/20/22/image_06042025_20_23_04_10679.jpg', 2), ('/home/nano/Desktop/images/06042025/20/22/image_06042025_20_22_44_9702.jpg', 2), ('/home/nano/Desktop/images/06042025/20/01/image_06042025_20_01_33_9647.jpg', 2), ('/home/nano/Desktop/images/06042025/20/01/image_06042025_20_01_24_9647.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/20/23/image_06042025_20_23_23_9646.jpg', '/home/nano/Desktop/images/06042025/20/23/image_06042025_20_23_14_9681.jpg', '/home/nano/Desktop/images/06042025/20/22/image_06042025_20_23_04_10679.jpg', '/home/nano/Desktop/images/06042025/20/22/image_06042025_20_22_44_9702.jpg', '/home/nano/Desktop/images/06042025/20/01/image_06042025_20_01_33_9647.jpg', '/home/nano/Desktop/images/06042025/20/01/image_06042025_20_01_24_9647.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/20/23/image_06042025_20_23_23_9646.jpg
/home/nano/Desktop/images/06042025/20/23/image_06042025_20_23_14_9681.jpg
/home/nano/Desktop/images/06042025/20/22/image_06042025_20_23_04_10679.jpg
/home/nano/Desktop/images/06042025/20/22/image_06042025_20_22_44_9702.jpg
/home/nano/Desktop/images/06042025/20/01/image_06042025_20_01_33_9647.jpg
/home/nano/Desktop/images/06042025/20/01/image_06042025_20_01_24_9647.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350182395","1350182389","1350182398","1350182392","1350182391","1350182394"],"photo_ids_order":["1350182389","1350182391","1350182392","1350182394","1350182395","1350182398"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/cbfb354ce08213725295a66b44e021de.jpg","text":"TemporaryFile(/tmp/multipartBody7019852579616768531asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963906065,"filename":"image_06042025_20_01_33_9647.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/32712dd10d2d3d633e300960034a99e7.jpg","text":"TemporaryFile(/tmp/multipartBody6638942284587274259asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963906065,"filename":"image_06042025_20_23_23_9646.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/847895a110f6b5122ec846db8bdeb22a.jpg","text":"TemporaryFile(/tmp/multipartBody408923609666262068asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963906065,"filename":"image_06042025_20_01_24_9647.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/2962866fb5635c12817026291fb8e29a.jpg","text":"TemporaryFile(/tmp/multipartBody6764225677691207437asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963906065,"filename":"image_06042025_20_23_04_10679.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/24cffd8dc44ab05919cd6f3a8d050c4b.jpg","text":"TemporaryFile(/tmp/multipartBody8648774882007122959asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963906065,"filename":"image_06042025_20_23_14_9681.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/bffbc228504aaade7a15f22826ec25fa.jpg","text":"TemporaryFile(/tmp/multipartBody2646066292478076577asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963906065,"filename":"image_06042025_20_22_44_9702.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350182392","file1":"1350182391","file0":"1350182389","file4":"1350182395","file5":"1350182398","file3":"1350182394"},"map_files_photo_id_array":[{"photo_id":"1350182398","filename":"file5"},{"photo_id":"1350182392","filename":"file2"},{"photo_id":"1350182395","filename":"file4"},{"photo_id":"1350182391","filename":"file1"},{"photo_id":"1350182389","filename":"file0"},{"photo_id":"1350182394","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350182395":["hashtag1","hashtag2"]},{"1350182389":["hashtag1","hashtag2"]},{"1350182398":["hashtag1","hashtag2"]},{"1350182392":["hashtag1","hashtag2"]},{"1350182391":["hashtag1","hashtag2"]},{"1350182394":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350182395, 1350182389, 1350182398, 1350182392, 1350182391, 1350182394)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.539695739746094 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 20:25:02.638972
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/20/23/image_06042025_20_24_04_10660.jpg', 2), ('/home/nano/Desktop/images/06042025/20/23/image_06042025_20_23_34_10650.jpg', 2), ('/home/nano/Desktop/images/06042025/20/01/image_06042025_20_01_14_10679.jpg', 2), ('/home/nano/Desktop/images/06042025/20/00/image_06042025_20_01_03_9656.jpg', 2), ('/home/nano/Desktop/images/06042025/20/00/image_06042025_20_00_54_9769.jpg', 2), ('/home/nano/Desktop/images/06042025/19/59/image_06042025_19_59_43_9767.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/20/23/image_06042025_20_24_04_10660.jpg', '/home/nano/Desktop/images/06042025/20/23/image_06042025_20_23_34_10650.jpg', '/home/nano/Desktop/images/06042025/20/01/image_06042025_20_01_14_10679.jpg', '/home/nano/Desktop/images/06042025/20/00/image_06042025_20_01_03_9656.jpg', '/home/nano/Desktop/images/06042025/20/00/image_06042025_20_00_54_9769.jpg', '/home/nano/Desktop/images/06042025/19/59/image_06042025_19_59_43_9767.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/20/23/image_06042025_20_24_04_10660.jpg
/home/nano/Desktop/images/06042025/20/23/image_06042025_20_23_34_10650.jpg
/home/nano/Desktop/images/06042025/20/01/image_06042025_20_01_14_10679.jpg
/home/nano/Desktop/images/06042025/20/00/image_06042025_20_01_03_9656.jpg
/home/nano/Desktop/images/06042025/20/00/image_06042025_20_00_54_9769.jpg
/home/nano/Desktop/images/06042025/19/59/image_06042025_19_59_43_9767.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350182457","1350182471","1350182453","1350182462","1350182455","1350182460"],"photo_ids_order":["1350182453","1350182455","1350182457","1350182460","1350182462","1350182471"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/3da8605ca89576f6cfe5ebd94782afa4.jpg","text":"TemporaryFile(/tmp/multipartBody6211033581294836814asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963964614,"filename":"image_06042025_20_01_14_10679.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/cfeb9423294a42d14ebbd5e3292c043c.jpg","text":"TemporaryFile(/tmp/multipartBody3031114797289047916asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963964614,"filename":"image_06042025_19_59_43_9767.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/8e292d7e1506e29220ab4567f068e7b4.jpg","text":"TemporaryFile(/tmp/multipartBody535947262494069258asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963964614,"filename":"image_06042025_20_24_04_10660.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/67fdefea69fd323325d4782dec24e74e.jpg","text":"TemporaryFile(/tmp/multipartBody6912640265325453349asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963964614,"filename":"image_06042025_20_00_54_9769.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/fd3922329416dd99d558485fa5d35a3f.jpg","text":"TemporaryFile(/tmp/multipartBody5254787576085691938asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963964614,"filename":"image_06042025_20_23_34_10650.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/880e4dc2704e057e1763e2dc8ddcf218.jpg","text":"TemporaryFile(/tmp/multipartBody5603488746097343422asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743963964614,"filename":"image_06042025_20_01_03_9656.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350182457","file1":"1350182455","file0":"1350182453","file4":"1350182462","file5":"1350182471","file3":"1350182460"},"map_files_photo_id_array":[{"photo_id":"1350182471","filename":"file5"},{"photo_id":"1350182457","filename":"file2"},{"photo_id":"1350182462","filename":"file4"},{"photo_id":"1350182455","filename":"file1"},{"photo_id":"1350182453","filename":"file0"},{"photo_id":"1350182460","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350182457":["hashtag1","hashtag2"]},{"1350182471":["hashtag1","hashtag2"]},{"1350182453":["hashtag1","hashtag2"]},{"1350182462":["hashtag1","hashtag2"]},{"1350182455":["hashtag1","hashtag2"]},{"1350182460":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350182457, 1350182471, 1350182453, 1350182462, 1350182455, 1350182460)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.73502159118652 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 20:26:02.831949
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/20/25/image_06042025_20_25_34_10659.jpg', 2), ('/home/nano/Desktop/images/06042025/20/25/image_06042025_20_25_23_9650.jpg', 2), ('/home/nano/Desktop/images/06042025/20/24/image_06042025_20_25_04_10687.jpg', 2), ('/home/nano/Desktop/images/06042025/20/24/image_06042025_20_24_14_9667.jpg', 2), ('/home/nano/Desktop/images/06042025/19/59/image_06042025_19_59_24_9766.jpg', 2), ('/home/nano/Desktop/images/06042025/19/59/image_06042025_19_59_14_10776.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/20/25/image_06042025_20_25_34_10659.jpg', '/home/nano/Desktop/images/06042025/20/25/image_06042025_20_25_23_9650.jpg', '/home/nano/Desktop/images/06042025/20/24/image_06042025_20_25_04_10687.jpg', '/home/nano/Desktop/images/06042025/20/24/image_06042025_20_24_14_9667.jpg', '/home/nano/Desktop/images/06042025/19/59/image_06042025_19_59_24_9766.jpg', '/home/nano/Desktop/images/06042025/19/59/image_06042025_19_59_14_10776.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/20/25/image_06042025_20_25_34_10659.jpg
/home/nano/Desktop/images/06042025/20/25/image_06042025_20_25_23_9650.jpg
/home/nano/Desktop/images/06042025/20/24/image_06042025_20_25_04_10687.jpg
/home/nano/Desktop/images/06042025/20/24/image_06042025_20_24_14_9667.jpg
/home/nano/Desktop/images/06042025/19/59/image_06042025_19_59_24_9766.jpg
/home/nano/Desktop/images/06042025/19/59/image_06042025_19_59_14_10776.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350182616","1350182627","1350182618","1350182623","1350182620","1350182602"],"photo_ids_order":["1350182602","1350182616","1350182618","1350182620","1350182623","1350182627"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/aa4d7c48dd8334a97e756deb8e772d54.jpg","text":"TemporaryFile(/tmp/multipartBody7858794576089682832asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964024752,"filename":"image_06042025_20_25_23_9650.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f255eb4ef718c1995556b44f73089f7f.jpg","text":"TemporaryFile(/tmp/multipartBody5438432614595104157asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964024752,"filename":"image_06042025_19_59_14_10776.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/1e760e31ca5ee3dd764f7e397f095d99.jpg","text":"TemporaryFile(/tmp/multipartBody4194955668631249225asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964024752,"filename":"image_06042025_20_25_04_10687.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4cb6b62e649ebcdedaf0e599f735aca0.jpg","text":"TemporaryFile(/tmp/multipartBody3716198504049008660asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964024752,"filename":"image_06042025_19_59_24_9766.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/74ecb91c230f9593f6f66900f58d873a.jpg","text":"TemporaryFile(/tmp/multipartBody9219898918266355625asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964024752,"filename":"image_06042025_20_24_14_9667.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/69fd8dd7479a956c494dbd9fca7dcfc4.jpg","text":"TemporaryFile(/tmp/multipartBody4074224267509824477asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964024752,"filename":"image_06042025_20_25_34_10659.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350182618","file1":"1350182616","file0":"1350182602","file4":"1350182623","file5":"1350182627","file3":"1350182620"},"map_files_photo_id_array":[{"photo_id":"1350182627","filename":"file5"},{"photo_id":"1350182618","filename":"file2"},{"photo_id":"1350182623","filename":"file4"},{"photo_id":"1350182616","filename":"file1"},{"photo_id":"1350182602","filename":"file0"},{"photo_id":"1350182620","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350182616":["hashtag1","hashtag2"]},{"1350182627":["hashtag1","hashtag2"]},{"1350182618":["hashtag1","hashtag2"]},{"1350182623":["hashtag1","hashtag2"]},{"1350182620":["hashtag1","hashtag2"]},{"1350182602":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350182616, 1350182627, 1350182618, 1350182623, 1350182620, 1350182602)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.51387906074524 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 20:27:02.862835
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/20/26/image_06042025_20_26_44_9665.jpg', 2), ('/home/nano/Desktop/images/06042025/20/26/image_06042025_20_26_34_10658.jpg', 2), ('/home/nano/Desktop/images/06042025/20/26/image_06042025_20_26_23_9646.jpg', 2), ('/home/nano/Desktop/images/06042025/20/26/image_06042025_20_26_14_9688.jpg', 2), ('/home/nano/Desktop/images/06042025/20/25/image_06042025_20_26_04_10666.jpg', 2), ('/home/nano/Desktop/images/06042025/20/25/image_06042025_20_25_53_9650.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/20/26/image_06042025_20_26_44_9665.jpg', '/home/nano/Desktop/images/06042025/20/26/image_06042025_20_26_34_10658.jpg', '/home/nano/Desktop/images/06042025/20/26/image_06042025_20_26_23_9646.jpg', '/home/nano/Desktop/images/06042025/20/26/image_06042025_20_26_14_9688.jpg', '/home/nano/Desktop/images/06042025/20/25/image_06042025_20_26_04_10666.jpg', '/home/nano/Desktop/images/06042025/20/25/image_06042025_20_25_53_9650.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/20/26/image_06042025_20_26_44_9665.jpg
/home/nano/Desktop/images/06042025/20/26/image_06042025_20_26_34_10658.jpg
/home/nano/Desktop/images/06042025/20/26/image_06042025_20_26_23_9646.jpg
/home/nano/Desktop/images/06042025/20/26/image_06042025_20_26_14_9688.jpg
/home/nano/Desktop/images/06042025/20/25/image_06042025_20_26_04_10666.jpg
/home/nano/Desktop/images/06042025/20/25/image_06042025_20_25_53_9650.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 1.544832706451416 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 20:27:32.276792
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/20/27/image_06042025_20_27_43_9648.jpg', 2), ('/home/nano/Desktop/images/06042025/20/27/image_06042025_20_27_34_10656.jpg', 2), ('/home/nano/Desktop/images/06042025/20/27/image_06042025_20_27_23_9645.jpg', 2), ('/home/nano/Desktop/images/06042025/20/27/image_06042025_20_27_14_9663.jpg', 2), ('/home/nano/Desktop/images/06042025/20/26/image_06042025_20_26_53_9663.jpg', 2), ('/home/nano/Desktop/images/06042025/20/26/image_06042025_20_26_44_9665.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/20/27/image_06042025_20_27_43_9648.jpg', '/home/nano/Desktop/images/06042025/20/27/image_06042025_20_27_34_10656.jpg', '/home/nano/Desktop/images/06042025/20/27/image_06042025_20_27_23_9645.jpg', '/home/nano/Desktop/images/06042025/20/27/image_06042025_20_27_14_9663.jpg', '/home/nano/Desktop/images/06042025/20/26/image_06042025_20_26_53_9663.jpg', '/home/nano/Desktop/images/06042025/20/26/image_06042025_20_26_44_9665.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/20/27/image_06042025_20_27_43_9648.jpg
/home/nano/Desktop/images/06042025/20/27/image_06042025_20_27_34_10656.jpg
/home/nano/Desktop/images/06042025/20/27/image_06042025_20_27_23_9645.jpg
/home/nano/Desktop/images/06042025/20/27/image_06042025_20_27_14_9663.jpg
/home/nano/Desktop/images/06042025/20/26/image_06042025_20_26_53_9663.jpg
/home/nano/Desktop/images/06042025/20/26/image_06042025_20_26_44_9665.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350182715","1350182700","1350182703","1350182687","1350182698","1350182686"],"photo_ids_order":["1350182686","1350182687","1350182698","1350182700","1350182703","1350182715"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e55f32b2e46393a1264c0d3129ba3826.jpg","text":"TemporaryFile(/tmp/multipartBody3299562861882661245asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964114021,"filename":"image_06042025_20_26_44_9665.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/9e9aedb6a308c5c41742381e1ff6682e.jpg","text":"TemporaryFile(/tmp/multipartBody5911549768588058347asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964114021,"filename":"image_06042025_20_27_14_9663.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/6740c25f0f84a0f9d43cb547719cf1aa.jpg","text":"TemporaryFile(/tmp/multipartBody4967918407600501960asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964114021,"filename":"image_06042025_20_26_53_9663.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/569c7ac58c70f9b2e0244dd8d817ee4c.jpg","text":"TemporaryFile(/tmp/multipartBody1109289309901953714asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964114021,"filename":"image_06042025_20_27_34_10656.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/5ae8b2ed69a7dd86822c89ef6f1323a1.jpg","text":"TemporaryFile(/tmp/multipartBody222204053381513766asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964114021,"filename":"image_06042025_20_27_23_9645.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/7a57c0466fcaa13acc25c55b0325e79f.jpg","text":"TemporaryFile(/tmp/multipartBody318796816710518776asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964114021,"filename":"image_06042025_20_27_43_9648.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350182698","file1":"1350182687","file0":"1350182686","file4":"1350182703","file5":"1350182715","file3":"1350182700"},"map_files_photo_id_array":[{"photo_id":"1350182715","filename":"file5"},{"photo_id":"1350182698","filename":"file2"},{"photo_id":"1350182703","filename":"file4"},{"photo_id":"1350182687","filename":"file1"},{"photo_id":"1350182686","filename":"file0"},{"photo_id":"1350182700","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350182715":["hashtag1","hashtag2"]},{"1350182700":["hashtag1","hashtag2"]},{"1350182703":["hashtag1","hashtag2"]},{"1350182687":["hashtag1","hashtag2"]},{"1350182698":["hashtag1","hashtag2"]},{"1350182686":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350182715, 1350182700, 1350182703, 1350182687, 1350182698, 1350182686)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 37.294562578201294 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 20:28:32.380444
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/20/28/image_06042025_20_28_34_9639.jpg', 2), ('/home/nano/Desktop/images/06042025/20/28/image_06042025_20_28_24_10650.jpg', 2), ('/home/nano/Desktop/images/06042025/20/28/image_06042025_20_28_13_9658.jpg', 2), ('/home/nano/Desktop/images/06042025/20/27/image_06042025_20_28_04_9671.jpg', 2), ('/home/nano/Desktop/images/06042025/20/27/image_06042025_20_27_54_10657.jpg', 2), ('/home/nano/Desktop/images/06042025/20/26/image_06042025_20_26_34_10658.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/20/28/image_06042025_20_28_34_9639.jpg', '/home/nano/Desktop/images/06042025/20/28/image_06042025_20_28_24_10650.jpg', '/home/nano/Desktop/images/06042025/20/28/image_06042025_20_28_13_9658.jpg', '/home/nano/Desktop/images/06042025/20/27/image_06042025_20_28_04_9671.jpg', '/home/nano/Desktop/images/06042025/20/27/image_06042025_20_27_54_10657.jpg', '/home/nano/Desktop/images/06042025/20/26/image_06042025_20_26_34_10658.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/20/28/image_06042025_20_28_34_9639.jpg
/home/nano/Desktop/images/06042025/20/28/image_06042025_20_28_24_10650.jpg
/home/nano/Desktop/images/06042025/20/28/image_06042025_20_28_13_9658.jpg
/home/nano/Desktop/images/06042025/20/27/image_06042025_20_28_04_9671.jpg
/home/nano/Desktop/images/06042025/20/27/image_06042025_20_27_54_10657.jpg
/home/nano/Desktop/images/06042025/20/26/image_06042025_20_26_34_10658.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350182754","1350182757","1350182735","1350182740","1350182737","1350182751"],"photo_ids_order":["1350182735","1350182737","1350182740","1350182751","1350182754","1350182757"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/390cbd2010caef7963aec9a455047e3d.jpg","text":"TemporaryFile(/tmp/multipartBody8207839970301793865asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964174048,"filename":"image_06042025_20_27_54_10657.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/fc14f328d9b10988c20bafb3c79248a9.jpg","text":"TemporaryFile(/tmp/multipartBody2627276097711986355asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964174048,"filename":"image_06042025_20_26_34_10658.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/206800ba9c8c5b159133bb108e3a04e4.jpg","text":"TemporaryFile(/tmp/multipartBody957977302337439510asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964174048,"filename":"image_06042025_20_28_34_9639.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/caf84d58256022e36d1d3311aca37e5f.jpg","text":"TemporaryFile(/tmp/multipartBody7409229902009206265asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964174048,"filename":"image_06042025_20_28_13_9658.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/8414bfc63bd6d44af514edd1f03c0b50.jpg","text":"TemporaryFile(/tmp/multipartBody2638067076952132089asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964174048,"filename":"image_06042025_20_28_24_10650.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/77cd9bd365fa051d5872898a233f3418.jpg","text":"TemporaryFile(/tmp/multipartBody9198549480172673225asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964174048,"filename":"image_06042025_20_28_04_9671.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350182740","file1":"1350182737","file0":"1350182735","file4":"1350182754","file5":"1350182757","file3":"1350182751"},"map_files_photo_id_array":[{"photo_id":"1350182757","filename":"file5"},{"photo_id":"1350182740","filename":"file2"},{"photo_id":"1350182754","filename":"file4"},{"photo_id":"1350182737","filename":"file1"},{"photo_id":"1350182735","filename":"file0"},{"photo_id":"1350182751","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350182754":["hashtag1","hashtag2"]},{"1350182757":["hashtag1","hashtag2"]},{"1350182735":["hashtag1","hashtag2"]},{"1350182740":["hashtag1","hashtag2"]},{"1350182737":["hashtag1","hashtag2"]},{"1350182751":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350182754, 1350182757, 1350182735, 1350182740, 1350182737, 1350182751)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 39.91092276573181 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 20:29:32.540320
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/20/29/image_06042025_20_29_44_9792.jpg', 2), ('/home/nano/Desktop/images/06042025/20/29/image_06042025_20_29_34_9784.jpg', 2), ('/home/nano/Desktop/images/06042025/20/29/image_06042025_20_29_24_10650.jpg', 2), ('/home/nano/Desktop/images/06042025/20/29/image_06042025_20_29_13_9657.jpg', 2), ('/home/nano/Desktop/images/06042025/20/28/image_06042025_20_29_04_9639.jpg', 2), ('/home/nano/Desktop/images/06042025/20/28/image_06042025_20_28_54_10667.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/20/29/image_06042025_20_29_44_9792.jpg', '/home/nano/Desktop/images/06042025/20/29/image_06042025_20_29_34_9784.jpg', '/home/nano/Desktop/images/06042025/20/29/image_06042025_20_29_24_10650.jpg', '/home/nano/Desktop/images/06042025/20/29/image_06042025_20_29_13_9657.jpg', '/home/nano/Desktop/images/06042025/20/28/image_06042025_20_29_04_9639.jpg', '/home/nano/Desktop/images/06042025/20/28/image_06042025_20_28_54_10667.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/20/29/image_06042025_20_29_44_9792.jpg
/home/nano/Desktop/images/06042025/20/29/image_06042025_20_29_34_9784.jpg
/home/nano/Desktop/images/06042025/20/29/image_06042025_20_29_24_10650.jpg
/home/nano/Desktop/images/06042025/20/29/image_06042025_20_29_13_9657.jpg
/home/nano/Desktop/images/06042025/20/28/image_06042025_20_29_04_9639.jpg
/home/nano/Desktop/images/06042025/20/28/image_06042025_20_28_54_10667.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350182904","1350182771","1350182906","1350182896","1350182899","1350182902"],"photo_ids_order":["1350182771","1350182896","1350182899","1350182902","1350182904","1350182906"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a87bef8d3e0c0d87e3ce0bbce1d61656.jpg","text":"TemporaryFile(/tmp/multipartBody4371722177501337671asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964234856,"filename":"image_06042025_20_29_04_9639.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/80491419f543c98ca63f437d0d7ca0ee.jpg","text":"TemporaryFile(/tmp/multipartBody8121556461536130012asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964234856,"filename":"image_06042025_20_29_44_9792.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/1a12f539e5cf93d9f78136bbd4d7675d.jpg","text":"TemporaryFile(/tmp/multipartBody2482001750784108516asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964234856,"filename":"image_06042025_20_28_54_10667.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/0a5db029fcc3c59d7cc2f4e3d6849f75.jpg","text":"TemporaryFile(/tmp/multipartBody894862285574484500asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964234856,"filename":"image_06042025_20_29_34_9784.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f8c10d5ae1598a770c371bfec7e18b55.jpg","text":"TemporaryFile(/tmp/multipartBody1356584138186510073asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964234856,"filename":"image_06042025_20_29_24_10650.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/43160536aaafb131025976b629569084.jpg","text":"TemporaryFile(/tmp/multipartBody287845062210804360asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964234856,"filename":"image_06042025_20_29_13_9657.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350182899","file1":"1350182896","file0":"1350182771","file4":"1350182904","file5":"1350182906","file3":"1350182902"},"map_files_photo_id_array":[{"photo_id":"1350182906","filename":"file5"},{"photo_id":"1350182899","filename":"file2"},{"photo_id":"1350182904","filename":"file4"},{"photo_id":"1350182896","filename":"file1"},{"photo_id":"1350182771","filename":"file0"},{"photo_id":"1350182902","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350182904":["hashtag1","hashtag2"]},{"1350182771":["hashtag1","hashtag2"]},{"1350182906":["hashtag1","hashtag2"]},{"1350182896":["hashtag1","hashtag2"]},{"1350182899":["hashtag1","hashtag2"]},{"1350182902":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350182904, 1350182771, 1350182906, 1350182896, 1350182899, 1350182902)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 38.51586294174194 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 20:30:32.617961
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/20/30/image_06042025_20_30_44_9643.jpg', 2), ('/home/nano/Desktop/images/06042025/20/30/image_06042025_20_30_34_10654.jpg', 2), ('/home/nano/Desktop/images/06042025/20/30/image_06042025_20_30_23_9659.jpg', 2), ('/home/nano/Desktop/images/06042025/20/30/image_06042025_20_30_14_9662.jpg', 2), ('/home/nano/Desktop/images/06042025/20/29/image_06042025_20_30_04_10660.jpg', 2), ('/home/nano/Desktop/images/06042025/20/29/image_06042025_20_29_53_9660.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/20/30/image_06042025_20_30_44_9643.jpg', '/home/nano/Desktop/images/06042025/20/30/image_06042025_20_30_34_10654.jpg', '/home/nano/Desktop/images/06042025/20/30/image_06042025_20_30_23_9659.jpg', '/home/nano/Desktop/images/06042025/20/30/image_06042025_20_30_14_9662.jpg', '/home/nano/Desktop/images/06042025/20/29/image_06042025_20_30_04_10660.jpg', '/home/nano/Desktop/images/06042025/20/29/image_06042025_20_29_53_9660.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/20/30/image_06042025_20_30_44_9643.jpg
/home/nano/Desktop/images/06042025/20/30/image_06042025_20_30_34_10654.jpg
/home/nano/Desktop/images/06042025/20/30/image_06042025_20_30_23_9659.jpg
/home/nano/Desktop/images/06042025/20/30/image_06042025_20_30_14_9662.jpg
/home/nano/Desktop/images/06042025/20/29/image_06042025_20_30_04_10660.jpg
/home/nano/Desktop/images/06042025/20/29/image_06042025_20_29_53_9660.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350182940","1350183005","1350182942","1350183008","1350182945","1350183001"],"photo_ids_order":["1350182940","1350182942","1350182945","1350183001","1350183005","1350183008"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/12335c40cf046e10243e5152773011c3.jpg","text":"TemporaryFile(/tmp/multipartBody2910354579578935087asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964295495,"filename":"image_06042025_20_30_44_9643.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/70c9d76572f76fe3340a1bb78554390b.jpg","text":"TemporaryFile(/tmp/multipartBody7311044967344181169asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964295495,"filename":"image_06042025_20_30_04_10660.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b71e429338374335942a3fd0d2bc0e61.jpg","text":"TemporaryFile(/tmp/multipartBody8360195774069378870asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964295495,"filename":"image_06042025_20_30_34_10654.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/1efc966f6e8ee54c9e58e2d62a39e2ea.jpg","text":"TemporaryFile(/tmp/multipartBody8291534261863553839asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964295495,"filename":"image_06042025_20_29_53_9660.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/1f68c8241542a90f8519fed7268f4124.jpg","text":"TemporaryFile(/tmp/multipartBody6316761020504935696asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964295495,"filename":"image_06042025_20_30_23_9659.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b47bd8f58bcc27a967c7cfaf04864ad7.jpg","text":"TemporaryFile(/tmp/multipartBody4837562759847983514asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964295495,"filename":"image_06042025_20_30_14_9662.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350182945","file1":"1350182942","file0":"1350182940","file4":"1350183005","file5":"1350183008","file3":"1350183001"},"map_files_photo_id_array":[{"photo_id":"1350183008","filename":"file5"},{"photo_id":"1350182945","filename":"file2"},{"photo_id":"1350183005","filename":"file4"},{"photo_id":"1350182942","filename":"file1"},{"photo_id":"1350182940","filename":"file0"},{"photo_id":"1350183001","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350182940":["hashtag1","hashtag2"]},{"1350183005":["hashtag1","hashtag2"]},{"1350182942":["hashtag1","hashtag2"]},{"1350183008":["hashtag1","hashtag2"]},{"1350182945":["hashtag1","hashtag2"]},{"1350183001":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350182940, 1350183005, 1350182942, 1350183008, 1350182945, 1350183001)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.05920720100403 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 20:31:32.712531
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/20/31/image_06042025_20_31_43_9643.jpg', 2), ('/home/nano/Desktop/images/06042025/20/31/image_06042025_20_31_34_10656.jpg', 2), ('/home/nano/Desktop/images/06042025/20/31/image_06042025_20_31_23_9645.jpg', 2), ('/home/nano/Desktop/images/06042025/20/31/image_06042025_20_31_14_9667.jpg', 2), ('/home/nano/Desktop/images/06042025/20/30/image_06042025_20_31_04_10671.jpg', 2), ('/home/nano/Desktop/images/06042025/20/30/image_06042025_20_30_53_9638.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/20/31/image_06042025_20_31_43_9643.jpg', '/home/nano/Desktop/images/06042025/20/31/image_06042025_20_31_34_10656.jpg', '/home/nano/Desktop/images/06042025/20/31/image_06042025_20_31_23_9645.jpg', '/home/nano/Desktop/images/06042025/20/31/image_06042025_20_31_14_9667.jpg', '/home/nano/Desktop/images/06042025/20/30/image_06042025_20_31_04_10671.jpg', '/home/nano/Desktop/images/06042025/20/30/image_06042025_20_30_53_9638.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/20/31/image_06042025_20_31_43_9643.jpg
/home/nano/Desktop/images/06042025/20/31/image_06042025_20_31_34_10656.jpg
/home/nano/Desktop/images/06042025/20/31/image_06042025_20_31_23_9645.jpg
/home/nano/Desktop/images/06042025/20/31/image_06042025_20_31_14_9667.jpg
/home/nano/Desktop/images/06042025/20/30/image_06042025_20_31_04_10671.jpg
/home/nano/Desktop/images/06042025/20/30/image_06042025_20_30_53_9638.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350183041","1350183020","1350183034","1350183028","1350183022","1350183024"],"photo_ids_order":["1350183020","1350183022","1350183024","1350183028","1350183034","1350183041"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/3712fcc50d2681702347c82fdd36c3f7.jpg","text":"TemporaryFile(/tmp/multipartBody3530829229707991147asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964354029,"filename":"image_06042025_20_30_53_9638.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c28a9e20de673768217880b2e948859f.jpg","text":"TemporaryFile(/tmp/multipartBody1420777974965729311asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964354029,"filename":"image_06042025_20_31_43_9643.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/242a9edf50926ec4c6a8bb51a5af6f94.jpg","text":"TemporaryFile(/tmp/multipartBody2479768459707237481asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964354029,"filename":"image_06042025_20_31_04_10671.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b0916460dcc50f623e7c7142b8480d28.jpg","text":"TemporaryFile(/tmp/multipartBody2956873690362183472asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964354029,"filename":"image_06042025_20_31_14_9667.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/8f45ba47f301b1b1f5a7cc12767ba67e.jpg","text":"TemporaryFile(/tmp/multipartBody2269044864902797546asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964354029,"filename":"image_06042025_20_31_34_10656.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/1c20b2fec6b1e7031c8dc7cdbf839631.jpg","text":"TemporaryFile(/tmp/multipartBody1337934347207959422asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964354029,"filename":"image_06042025_20_31_23_9645.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350183024","file1":"1350183022","file0":"1350183020","file4":"1350183034","file5":"1350183041","file3":"1350183028"},"map_files_photo_id_array":[{"photo_id":"1350183041","filename":"file5"},{"photo_id":"1350183024","filename":"file2"},{"photo_id":"1350183034","filename":"file4"},{"photo_id":"1350183022","filename":"file1"},{"photo_id":"1350183020","filename":"file0"},{"photo_id":"1350183028","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350183041":["hashtag1","hashtag2"]},{"1350183020":["hashtag1","hashtag2"]},{"1350183034":["hashtag1","hashtag2"]},{"1350183028":["hashtag1","hashtag2"]},{"1350183022":["hashtag1","hashtag2"]},{"1350183024":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350183041, 1350183020, 1350183034, 1350183028, 1350183022, 1350183024)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.35017418861389 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 20:32:31.813252
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/20/32/image_06042025_20_32_43_9643.jpg', 2), ('/home/nano/Desktop/images/06042025/20/32/image_06042025_20_32_34_9645.jpg', 2), ('/home/nano/Desktop/images/06042025/20/32/image_06042025_20_32_24_10673.jpg', 2), ('/home/nano/Desktop/images/06042025/20/31/image_06042025_20_32_04_9656.jpg', 2), ('/home/nano/Desktop/images/06042025/20/31/image_06042025_20_31_54_10653.jpg', 2), ('/home/nano/Desktop/images/06042025/20/26/image_06042025_20_26_23_9646.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/20/32/image_06042025_20_32_43_9643.jpg', '/home/nano/Desktop/images/06042025/20/32/image_06042025_20_32_34_9645.jpg', '/home/nano/Desktop/images/06042025/20/32/image_06042025_20_32_24_10673.jpg', '/home/nano/Desktop/images/06042025/20/31/image_06042025_20_32_04_9656.jpg', '/home/nano/Desktop/images/06042025/20/31/image_06042025_20_31_54_10653.jpg', '/home/nano/Desktop/images/06042025/20/26/image_06042025_20_26_23_9646.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/20/32/image_06042025_20_32_43_9643.jpg
/home/nano/Desktop/images/06042025/20/32/image_06042025_20_32_34_9645.jpg
/home/nano/Desktop/images/06042025/20/32/image_06042025_20_32_24_10673.jpg
/home/nano/Desktop/images/06042025/20/31/image_06042025_20_32_04_9656.jpg
/home/nano/Desktop/images/06042025/20/31/image_06042025_20_31_54_10653.jpg
/home/nano/Desktop/images/06042025/20/26/image_06042025_20_26_23_9646.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350183086","1350183074","1350183068","1350183079","1350183084","1350183105"],"photo_ids_order":["1350183068","1350183074","1350183079","1350183084","1350183086","1350183105"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/6baa2de64ebb6cb782af007c45449535.jpg","text":"TemporaryFile(/tmp/multipartBody7743104658148654534asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964413561,"filename":"image_06042025_20_31_54_10653.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/08135a7ab5a995612f73d9f3995a10e2.jpg","text":"TemporaryFile(/tmp/multipartBody9121384818524858376asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964413561,"filename":"image_06042025_20_32_34_9645.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/3de813b8a0535357d2705e92ae5c91d4.jpg","text":"TemporaryFile(/tmp/multipartBody3746892099899021663asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964413561,"filename":"image_06042025_20_32_43_9643.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/293bb5ba8adc25a165f460b673aef35a.jpg","text":"TemporaryFile(/tmp/multipartBody1635514942012326352asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964413561,"filename":"image_06042025_20_32_24_10673.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/32d6c041c10481a306226add81497da2.jpg","text":"TemporaryFile(/tmp/multipartBody1279590994534562517asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964413561,"filename":"image_06042025_20_32_04_9656.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/3cb46beac1a2ef28aac9ce43951cdba7.jpg","text":"TemporaryFile(/tmp/multipartBody6175141048160634752asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964413561,"filename":"image_06042025_20_26_23_9646.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350183079","file1":"1350183074","file0":"1350183068","file4":"1350183086","file5":"1350183105","file3":"1350183084"},"map_files_photo_id_array":[{"photo_id":"1350183105","filename":"file5"},{"photo_id":"1350183079","filename":"file2"},{"photo_id":"1350183086","filename":"file4"},{"photo_id":"1350183074","filename":"file1"},{"photo_id":"1350183068","filename":"file0"},{"photo_id":"1350183084","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350183086":["hashtag1","hashtag2"]},{"1350183074":["hashtag1","hashtag2"]},{"1350183068":["hashtag1","hashtag2"]},{"1350183079":["hashtag1","hashtag2"]},{"1350183084":["hashtag1","hashtag2"]},{"1350183105":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350183086, 1350183074, 1350183068, 1350183079, 1350183084, 1350183105)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.1938750743866 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 20:33:31.910644
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/20/33/image_06042025_20_33_43_9649.jpg', 2), ('/home/nano/Desktop/images/06042025/20/33/image_06042025_20_33_34_9648.jpg', 2), ('/home/nano/Desktop/images/06042025/20/32/image_06042025_20_33_04_9650.jpg', 2), ('/home/nano/Desktop/images/06042025/20/32/image_06042025_20_32_54_10653.jpg', 2), ('/home/nano/Desktop/images/06042025/20/26/image_06042025_20_26_14_9688.jpg', 2), ('/home/nano/Desktop/images/06042025/20/25/image_06042025_20_26_04_10666.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/20/33/image_06042025_20_33_43_9649.jpg', '/home/nano/Desktop/images/06042025/20/33/image_06042025_20_33_34_9648.jpg', '/home/nano/Desktop/images/06042025/20/32/image_06042025_20_33_04_9650.jpg', '/home/nano/Desktop/images/06042025/20/32/image_06042025_20_32_54_10653.jpg', '/home/nano/Desktop/images/06042025/20/26/image_06042025_20_26_14_9688.jpg', '/home/nano/Desktop/images/06042025/20/25/image_06042025_20_26_04_10666.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/20/33/image_06042025_20_33_43_9649.jpg
/home/nano/Desktop/images/06042025/20/33/image_06042025_20_33_34_9648.jpg
/home/nano/Desktop/images/06042025/20/32/image_06042025_20_33_04_9650.jpg
/home/nano/Desktop/images/06042025/20/32/image_06042025_20_32_54_10653.jpg
/home/nano/Desktop/images/06042025/20/26/image_06042025_20_26_14_9688.jpg
/home/nano/Desktop/images/06042025/20/25/image_06042025_20_26_04_10666.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350183163","1350183157","1350183139","1350183174","1350183177","1350183141"],"photo_ids_order":["1350183139","1350183141","1350183157","1350183163","1350183174","1350183177"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a6354b03fd519af956a3e66113efefe5.jpg","text":"TemporaryFile(/tmp/multipartBody6099324776037842230asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964473804,"filename":"image_06042025_20_32_54_10653.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e81a4017a77b10c28092e0bb18a9a97f.jpg","text":"TemporaryFile(/tmp/multipartBody1315689689970065482asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964473804,"filename":"image_06042025_20_33_04_9650.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4a0005a85685c9b2088a9acfced43fe9.jpg","text":"TemporaryFile(/tmp/multipartBody4151715920403034716asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964473804,"filename":"image_06042025_20_33_43_9649.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/36403042f71fb0a0eabda7baf9d631b2.jpg","text":"TemporaryFile(/tmp/multipartBody5375178657778300788asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964473804,"filename":"image_06042025_20_26_14_9688.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/502cc985412bdddaca2637910a901d9e.jpg","text":"TemporaryFile(/tmp/multipartBody5772526303251275111asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964473804,"filename":"image_06042025_20_26_04_10666.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/333288d41614efe938da41f6bf25c8ba.jpg","text":"TemporaryFile(/tmp/multipartBody4437039920117382698asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964473804,"filename":"image_06042025_20_33_34_9648.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350183157","file1":"1350183141","file0":"1350183139","file4":"1350183174","file5":"1350183177","file3":"1350183163"},"map_files_photo_id_array":[{"photo_id":"1350183177","filename":"file5"},{"photo_id":"1350183157","filename":"file2"},{"photo_id":"1350183174","filename":"file4"},{"photo_id":"1350183141","filename":"file1"},{"photo_id":"1350183139","filename":"file0"},{"photo_id":"1350183163","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350183163":["hashtag1","hashtag2"]},{"1350183157":["hashtag1","hashtag2"]},{"1350183139":["hashtag1","hashtag2"]},{"1350183174":["hashtag1","hashtag2"]},{"1350183177":["hashtag1","hashtag2"]},{"1350183141":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350183163, 1350183157, 1350183139, 1350183174, 1350183177, 1350183141)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 36.90039610862732 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 20:34:32.049767
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/20/34/image_06042025_20_34_34_9641.jpg', 2), ('/home/nano/Desktop/images/06042025/20/34/image_06042025_20_34_24_10665.jpg', 2), ('/home/nano/Desktop/images/06042025/20/34/image_06042025_20_34_13_9656.jpg', 2), ('/home/nano/Desktop/images/06042025/20/33/image_06042025_20_34_04_9634.jpg', 2), ('/home/nano/Desktop/images/06042025/20/33/image_06042025_20_33_54_10655.jpg', 2), ('/home/nano/Desktop/images/06042025/20/25/image_06042025_20_25_53_9650.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/20/34/image_06042025_20_34_34_9641.jpg', '/home/nano/Desktop/images/06042025/20/34/image_06042025_20_34_24_10665.jpg', '/home/nano/Desktop/images/06042025/20/34/image_06042025_20_34_13_9656.jpg', '/home/nano/Desktop/images/06042025/20/33/image_06042025_20_34_04_9634.jpg', '/home/nano/Desktop/images/06042025/20/33/image_06042025_20_33_54_10655.jpg', '/home/nano/Desktop/images/06042025/20/25/image_06042025_20_25_53_9650.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/20/34/image_06042025_20_34_34_9641.jpg
/home/nano/Desktop/images/06042025/20/34/image_06042025_20_34_24_10665.jpg
/home/nano/Desktop/images/06042025/20/34/image_06042025_20_34_13_9656.jpg
/home/nano/Desktop/images/06042025/20/33/image_06042025_20_34_04_9634.jpg
/home/nano/Desktop/images/06042025/20/33/image_06042025_20_33_54_10655.jpg
/home/nano/Desktop/images/06042025/20/25/image_06042025_20_25_53_9650.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350183213","1350183197","1350183200","1350183193","1350183208","1350183204"],"photo_ids_order":["1350183193","1350183197","1350183200","1350183204","1350183208","1350183213"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/da44a203594ab8540db9320b28652d7f.jpg","text":"TemporaryFile(/tmp/multipartBody5395237564725247280asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964533467,"filename":"image_06042025_20_25_53_9650.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/d835306280b6cd23d749aa5f97b503b9.jpg","text":"TemporaryFile(/tmp/multipartBody1925871087576433306asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964533467,"filename":"image_06042025_20_34_24_10665.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/10176900db67266d8a7baccf0819390b.jpg","text":"TemporaryFile(/tmp/multipartBody6648302099062407425asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964533467,"filename":"image_06042025_20_34_13_9656.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e2961a30d30bc852089c080448c2a45c.jpg","text":"TemporaryFile(/tmp/multipartBody9080324041304301891asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964533467,"filename":"image_06042025_20_34_34_9641.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/909695646e5fb58242681df7947cb528.jpg","text":"TemporaryFile(/tmp/multipartBody7066969737332577219asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964533467,"filename":"image_06042025_20_33_54_10655.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e705650c5a66f0e473acdb962c4b558b.jpg","text":"TemporaryFile(/tmp/multipartBody6159855654380064601asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964533467,"filename":"image_06042025_20_34_04_9634.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350183200","file1":"1350183197","file0":"1350183193","file4":"1350183208","file5":"1350183213","file3":"1350183204"},"map_files_photo_id_array":[{"photo_id":"1350183213","filename":"file5"},{"photo_id":"1350183200","filename":"file2"},{"photo_id":"1350183208","filename":"file4"},{"photo_id":"1350183197","filename":"file1"},{"photo_id":"1350183193","filename":"file0"},{"photo_id":"1350183204","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350183213":["hashtag1","hashtag2"]},{"1350183197":["hashtag1","hashtag2"]},{"1350183200":["hashtag1","hashtag2"]},{"1350183193":["hashtag1","hashtag2"]},{"1350183208":["hashtag1","hashtag2"]},{"1350183204":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350183213, 1350183197, 1350183200, 1350183193, 1350183208, 1350183204)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 36.2495059967041 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 20:35:32.153108
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/20/35/image_06042025_20_35_44_10647.jpg', 2), ('/home/nano/Desktop/images/06042025/20/35/image_06042025_20_35_33_9636.jpg', 2), ('/home/nano/Desktop/images/06042025/20/35/image_06042025_20_35_24_10647.jpg', 2), ('/home/nano/Desktop/images/06042025/20/35/image_06042025_20_35_13_9654.jpg', 2), ('/home/nano/Desktop/images/06042025/20/34/image_06042025_20_35_04_9641.jpg', 2), ('/home/nano/Desktop/images/06042025/20/34/image_06042025_20_34_43_9644.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/20/35/image_06042025_20_35_44_10647.jpg', '/home/nano/Desktop/images/06042025/20/35/image_06042025_20_35_33_9636.jpg', '/home/nano/Desktop/images/06042025/20/35/image_06042025_20_35_24_10647.jpg', '/home/nano/Desktop/images/06042025/20/35/image_06042025_20_35_13_9654.jpg', '/home/nano/Desktop/images/06042025/20/34/image_06042025_20_35_04_9641.jpg', '/home/nano/Desktop/images/06042025/20/34/image_06042025_20_34_43_9644.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/20/35/image_06042025_20_35_44_10647.jpg
/home/nano/Desktop/images/06042025/20/35/image_06042025_20_35_33_9636.jpg
/home/nano/Desktop/images/06042025/20/35/image_06042025_20_35_24_10647.jpg
/home/nano/Desktop/images/06042025/20/35/image_06042025_20_35_13_9654.jpg
/home/nano/Desktop/images/06042025/20/34/image_06042025_20_35_04_9641.jpg
/home/nano/Desktop/images/06042025/20/34/image_06042025_20_34_43_9644.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350183227","1350183239","1350183230","1350183235","1350183243","1350183225"],"photo_ids_order":["1350183225","1350183227","1350183230","1350183235","1350183239","1350183243"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ae4d1459308c39c067bb43f2f56bac92.jpg","text":"TemporaryFile(/tmp/multipartBody2038605259940145615asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964593704,"filename":"image_06042025_20_35_33_9636.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/edea15d92b725d85356489f577e1332e.jpg","text":"TemporaryFile(/tmp/multipartBody7340568757417635354asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964593704,"filename":"image_06042025_20_35_04_9641.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/149ed0b76eec91da5441fe85096f739e.jpg","text":"TemporaryFile(/tmp/multipartBody1367492150258163140asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964593704,"filename":"image_06042025_20_35_24_10647.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/7236fcc163da12807cfb12e3e6047ec5.jpg","text":"TemporaryFile(/tmp/multipartBody3931853672262764157asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964593704,"filename":"image_06042025_20_35_13_9654.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/d4af5410ff43a2cea6182ba8febfbb7e.jpg","text":"TemporaryFile(/tmp/multipartBody3589009378257415721asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964593704,"filename":"image_06042025_20_34_43_9644.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b4a6b8ed04efbe3cb6594cc7af27462b.jpg","text":"TemporaryFile(/tmp/multipartBody2353227353069400901asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964593704,"filename":"image_06042025_20_35_44_10647.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350183230","file1":"1350183227","file0":"1350183225","file4":"1350183239","file5":"1350183243","file3":"1350183235"},"map_files_photo_id_array":[{"photo_id":"1350183243","filename":"file5"},{"photo_id":"1350183230","filename":"file2"},{"photo_id":"1350183239","filename":"file4"},{"photo_id":"1350183227","filename":"file1"},{"photo_id":"1350183225","filename":"file0"},{"photo_id":"1350183235","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350183227":["hashtag1","hashtag2"]},{"1350183239":["hashtag1","hashtag2"]},{"1350183230":["hashtag1","hashtag2"]},{"1350183235":["hashtag1","hashtag2"]},{"1350183243":["hashtag1","hashtag2"]},{"1350183225":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350183227, 1350183239, 1350183230, 1350183235, 1350183243, 1350183225)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.858633279800415 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 20:36:32.258240
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/20/36/image_06042025_20_36_43_9780.jpg', 2), ('/home/nano/Desktop/images/06042025/20/36/image_06042025_20_36_34_9779.jpg', 2), ('/home/nano/Desktop/images/06042025/20/36/image_06042025_20_36_24_9639.jpg', 2), ('/home/nano/Desktop/images/06042025/20/36/image_06042025_20_36_14_10674.jpg', 2), ('/home/nano/Desktop/images/06042025/20/35/image_06042025_20_36_03_9663.jpg', 2), ('/home/nano/Desktop/images/06042025/20/35/image_06042025_20_35_54_9638.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/20/36/image_06042025_20_36_43_9780.jpg', '/home/nano/Desktop/images/06042025/20/36/image_06042025_20_36_34_9779.jpg', '/home/nano/Desktop/images/06042025/20/36/image_06042025_20_36_24_9639.jpg', '/home/nano/Desktop/images/06042025/20/36/image_06042025_20_36_14_10674.jpg', '/home/nano/Desktop/images/06042025/20/35/image_06042025_20_36_03_9663.jpg', '/home/nano/Desktop/images/06042025/20/35/image_06042025_20_35_54_9638.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/20/36/image_06042025_20_36_43_9780.jpg
/home/nano/Desktop/images/06042025/20/36/image_06042025_20_36_34_9779.jpg
/home/nano/Desktop/images/06042025/20/36/image_06042025_20_36_24_9639.jpg
/home/nano/Desktop/images/06042025/20/36/image_06042025_20_36_14_10674.jpg
/home/nano/Desktop/images/06042025/20/35/image_06042025_20_36_03_9663.jpg
/home/nano/Desktop/images/06042025/20/35/image_06042025_20_35_54_9638.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350183290","1350183283","1350183286","1350183288","1350183261","1350183264"],"photo_ids_order":["1350183261","1350183264","1350183283","1350183286","1350183288","1350183290"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c623b244f2c2e8c548fa4a53610415e6.jpg","text":"TemporaryFile(/tmp/multipartBody4346631853068892506asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964654214,"filename":"image_06042025_20_35_54_9638.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a308e571938b0d5c93b0787a14a36033.jpg","text":"TemporaryFile(/tmp/multipartBody506434455643073570asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964654214,"filename":"image_06042025_20_36_24_9639.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/d847a764bcfe3306a72339193660a1e5.jpg","text":"TemporaryFile(/tmp/multipartBody8093600800885136100asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964654214,"filename":"image_06042025_20_36_14_10674.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/5423fd21147810e90453f574f2571244.jpg","text":"TemporaryFile(/tmp/multipartBody3552523213798430192asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964654214,"filename":"image_06042025_20_36_03_9663.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/9fef5a487ea7c5fcdeb7275918213441.jpg","text":"TemporaryFile(/tmp/multipartBody3704702261238523766asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964654214,"filename":"image_06042025_20_36_43_9780.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/5f607813df40e72f76be760d24309001.jpg","text":"TemporaryFile(/tmp/multipartBody6425609470683940203asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964654214,"filename":"image_06042025_20_36_34_9779.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350183283","file1":"1350183264","file0":"1350183261","file4":"1350183288","file5":"1350183290","file3":"1350183286"},"map_files_photo_id_array":[{"photo_id":"1350183290","filename":"file5"},{"photo_id":"1350183283","filename":"file2"},{"photo_id":"1350183288","filename":"file4"},{"photo_id":"1350183264","filename":"file1"},{"photo_id":"1350183261","filename":"file0"},{"photo_id":"1350183286","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350183290":["hashtag1","hashtag2"]},{"1350183283":["hashtag1","hashtag2"]},{"1350183286":["hashtag1","hashtag2"]},{"1350183288":["hashtag1","hashtag2"]},{"1350183261":["hashtag1","hashtag2"]},{"1350183264":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350183290, 1350183283, 1350183286, 1350183288, 1350183261, 1350183264)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.40186786651611 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 20:37:32.366420
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/20/37/image_06042025_20_37_44_10820.jpg', 2), ('/home/nano/Desktop/images/06042025/20/37/image_06042025_20_37_33_9816.jpg', 2), ('/home/nano/Desktop/images/06042025/20/37/image_06042025_20_37_23_9792.jpg', 2), ('/home/nano/Desktop/images/06042025/20/37/image_06042025_20_37_14_9806.jpg', 2), ('/home/nano/Desktop/images/06042025/20/36/image_06042025_20_37_04_9796.jpg', 2), ('/home/nano/Desktop/images/06042025/20/36/image_06042025_20_36_54_10788.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/20/37/image_06042025_20_37_44_10820.jpg', '/home/nano/Desktop/images/06042025/20/37/image_06042025_20_37_33_9816.jpg', '/home/nano/Desktop/images/06042025/20/37/image_06042025_20_37_23_9792.jpg', '/home/nano/Desktop/images/06042025/20/37/image_06042025_20_37_14_9806.jpg', '/home/nano/Desktop/images/06042025/20/36/image_06042025_20_37_04_9796.jpg', '/home/nano/Desktop/images/06042025/20/36/image_06042025_20_36_54_10788.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/20/37/image_06042025_20_37_44_10820.jpg
/home/nano/Desktop/images/06042025/20/37/image_06042025_20_37_33_9816.jpg
/home/nano/Desktop/images/06042025/20/37/image_06042025_20_37_23_9792.jpg
/home/nano/Desktop/images/06042025/20/37/image_06042025_20_37_14_9806.jpg
/home/nano/Desktop/images/06042025/20/36/image_06042025_20_37_04_9796.jpg
/home/nano/Desktop/images/06042025/20/36/image_06042025_20_36_54_10788.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 1.8586392402648926 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 20:38:02.888200
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/20/37/image_06042025_20_37_44_10820.jpg', 2), ('/home/nano/Desktop/images/06042025/20/37/image_06042025_20_37_33_9816.jpg', 2), ('/home/nano/Desktop/images/06042025/20/37/image_06042025_20_37_23_9792.jpg', 2), ('/home/nano/Desktop/images/06042025/20/37/image_06042025_20_37_14_9806.jpg', 2), ('/home/nano/Desktop/images/06042025/20/36/image_06042025_20_37_04_9796.jpg', 2), ('/home/nano/Desktop/images/06042025/20/36/image_06042025_20_36_54_10788.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/20/37/image_06042025_20_37_44_10820.jpg', '/home/nano/Desktop/images/06042025/20/37/image_06042025_20_37_33_9816.jpg', '/home/nano/Desktop/images/06042025/20/37/image_06042025_20_37_23_9792.jpg', '/home/nano/Desktop/images/06042025/20/37/image_06042025_20_37_14_9806.jpg', '/home/nano/Desktop/images/06042025/20/36/image_06042025_20_37_04_9796.jpg', '/home/nano/Desktop/images/06042025/20/36/image_06042025_20_36_54_10788.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/20/37/image_06042025_20_37_44_10820.jpg
/home/nano/Desktop/images/06042025/20/37/image_06042025_20_37_33_9816.jpg
/home/nano/Desktop/images/06042025/20/37/image_06042025_20_37_23_9792.jpg
/home/nano/Desktop/images/06042025/20/37/image_06042025_20_37_14_9806.jpg
/home/nano/Desktop/images/06042025/20/36/image_06042025_20_37_04_9796.jpg
/home/nano/Desktop/images/06042025/20/36/image_06042025_20_36_54_10788.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350183383","1350183371","1350183374","1350183368","1350183418","1350183421"],"photo_ids_order":["1350183368","1350183371","1350183374","1350183383","1350183418","1350183421"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/6a5b7c4dff4eed63b073e54eb218b1e4.jpg","text":"TemporaryFile(/tmp/multipartBody837815021502235644asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964745259,"filename":"image_06042025_20_37_14_9806.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/cc466031bf1ac73498741496650d7d82.jpg","text":"TemporaryFile(/tmp/multipartBody549922808503091571asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964745259,"filename":"image_06042025_20_37_33_9816.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/0e5a37584fb91180774106e02c0977e0.jpg","text":"TemporaryFile(/tmp/multipartBody995638976769146948asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964745259,"filename":"image_06042025_20_37_23_9792.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/5b6e16dd1a6265647293991a0a2aa796.jpg","text":"TemporaryFile(/tmp/multipartBody6823484298707398751asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964745259,"filename":"image_06042025_20_37_44_10820.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/40a8d1f8d2d41a00a9fc815f1015b82d.jpg","text":"TemporaryFile(/tmp/multipartBody2168113813634142050asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964745259,"filename":"image_06042025_20_37_04_9796.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/cf4fa1261522237893054559ae222a19.jpg","text":"TemporaryFile(/tmp/multipartBody6766837225884448808asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964745259,"filename":"image_06042025_20_36_54_10788.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350183374","file1":"1350183371","file0":"1350183368","file4":"1350183418","file5":"1350183421","file3":"1350183383"},"map_files_photo_id_array":[{"photo_id":"1350183421","filename":"file5"},{"photo_id":"1350183374","filename":"file2"},{"photo_id":"1350183418","filename":"file4"},{"photo_id":"1350183371","filename":"file1"},{"photo_id":"1350183368","filename":"file0"},{"photo_id":"1350183383","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350183383":["hashtag1","hashtag2"]},{"1350183371":["hashtag1","hashtag2"]},{"1350183374":["hashtag1","hashtag2"]},{"1350183368":["hashtag1","hashtag2"]},{"1350183418":["hashtag1","hashtag2"]},{"1350183421":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350183383, 1350183371, 1350183374, 1350183368, 1350183418, 1350183421)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 36.433008909225464 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 20:39:03.355245
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/20/38/image_06042025_20_38_44_10866.jpg', 2), ('/home/nano/Desktop/images/06042025/20/38/image_06042025_20_38_33_9813.jpg', 2), ('/home/nano/Desktop/images/06042025/20/38/image_06042025_20_38_23_9830.jpg', 2), ('/home/nano/Desktop/images/06042025/20/38/image_06042025_20_38_14_9865.jpg', 2), ('/home/nano/Desktop/images/06042025/20/37/image_06042025_20_38_04_9815.jpg', 2), ('/home/nano/Desktop/images/06042025/20/37/image_06042025_20_37_54_9811.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/20/38/image_06042025_20_38_44_10866.jpg', '/home/nano/Desktop/images/06042025/20/38/image_06042025_20_38_33_9813.jpg', '/home/nano/Desktop/images/06042025/20/38/image_06042025_20_38_23_9830.jpg', '/home/nano/Desktop/images/06042025/20/38/image_06042025_20_38_14_9865.jpg', '/home/nano/Desktop/images/06042025/20/37/image_06042025_20_38_04_9815.jpg', '/home/nano/Desktop/images/06042025/20/37/image_06042025_20_37_54_9811.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/20/38/image_06042025_20_38_44_10866.jpg
/home/nano/Desktop/images/06042025/20/38/image_06042025_20_38_33_9813.jpg
/home/nano/Desktop/images/06042025/20/38/image_06042025_20_38_23_9830.jpg
/home/nano/Desktop/images/06042025/20/38/image_06042025_20_38_14_9865.jpg
/home/nano/Desktop/images/06042025/20/37/image_06042025_20_38_04_9815.jpg
/home/nano/Desktop/images/06042025/20/37/image_06042025_20_37_54_9811.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350183638","1350183640","1350183634","1350183681","1350183684","1350183636"],"photo_ids_order":["1350183634","1350183636","1350183638","1350183640","1350183681","1350183684"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/484a199b1e3db624ef8866af97da6f0a.jpg","text":"TemporaryFile(/tmp/multipartBody1992785707172097544asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964805066,"filename":"image_06042025_20_38_23_9830.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f9657b208ce36a0e6b510779e9b83baa.jpg","text":"TemporaryFile(/tmp/multipartBody3551328574595995676asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964805066,"filename":"image_06042025_20_38_14_9865.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/724a209be9d826e9aa52318674eb4005.jpg","text":"TemporaryFile(/tmp/multipartBody4661072654134601397asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964805066,"filename":"image_06042025_20_38_44_10866.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4b36a0a3f024f59922255eaeef53dba8.jpg","text":"TemporaryFile(/tmp/multipartBody6943568224319711123asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964805066,"filename":"image_06042025_20_38_04_9815.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e3762942c62233f2d4dbdd4a748ad91d.jpg","text":"TemporaryFile(/tmp/multipartBody1934813506710068813asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964805066,"filename":"image_06042025_20_37_54_9811.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/8977004a182ac3b949fa9b82c7b198d3.jpg","text":"TemporaryFile(/tmp/multipartBody8642334062009159722asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964805066,"filename":"image_06042025_20_38_33_9813.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350183638","file1":"1350183636","file0":"1350183634","file4":"1350183681","file5":"1350183684","file3":"1350183640"},"map_files_photo_id_array":[{"photo_id":"1350183684","filename":"file5"},{"photo_id":"1350183638","filename":"file2"},{"photo_id":"1350183681","filename":"file4"},{"photo_id":"1350183636","filename":"file1"},{"photo_id":"1350183634","filename":"file0"},{"photo_id":"1350183640","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350183638":["hashtag1","hashtag2"]},{"1350183640":["hashtag1","hashtag2"]},{"1350183634":["hashtag1","hashtag2"]},{"1350183681":["hashtag1","hashtag2"]},{"1350183684":["hashtag1","hashtag2"]},{"1350183636":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350183638, 1350183640, 1350183634, 1350183681, 1350183684, 1350183636)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.096322774887085 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 20:40:03.212388
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/20/39/image_06042025_20_39_44_10819.jpg', 2), ('/home/nano/Desktop/images/06042025/20/39/image_06042025_20_39_33_9809.jpg', 2), ('/home/nano/Desktop/images/06042025/20/39/image_06042025_20_39_23_9807.jpg', 2), ('/home/nano/Desktop/images/06042025/20/39/image_06042025_20_39_14_9834.jpg', 2), ('/home/nano/Desktop/images/06042025/20/38/image_06042025_20_39_04_9812.jpg', 2), ('/home/nano/Desktop/images/06042025/20/38/image_06042025_20_38_54_9811.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/20/39/image_06042025_20_39_44_10819.jpg', '/home/nano/Desktop/images/06042025/20/39/image_06042025_20_39_33_9809.jpg', '/home/nano/Desktop/images/06042025/20/39/image_06042025_20_39_23_9807.jpg', '/home/nano/Desktop/images/06042025/20/39/image_06042025_20_39_14_9834.jpg', '/home/nano/Desktop/images/06042025/20/38/image_06042025_20_39_04_9812.jpg', '/home/nano/Desktop/images/06042025/20/38/image_06042025_20_38_54_9811.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/20/39/image_06042025_20_39_44_10819.jpg
/home/nano/Desktop/images/06042025/20/39/image_06042025_20_39_33_9809.jpg
/home/nano/Desktop/images/06042025/20/39/image_06042025_20_39_23_9807.jpg
/home/nano/Desktop/images/06042025/20/39/image_06042025_20_39_14_9834.jpg
/home/nano/Desktop/images/06042025/20/38/image_06042025_20_39_04_9812.jpg
/home/nano/Desktop/images/06042025/20/38/image_06042025_20_38_54_9811.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350183723","1350183717","1350183716","1350183721","1350183730","1350183720"],"photo_ids_order":["1350183716","1350183717","1350183720","1350183721","1350183723","1350183730"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/418ca7545e74e23622484eb0784d03ed.jpg","text":"TemporaryFile(/tmp/multipartBody1254003903308883397asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964865422,"filename":"image_06042025_20_39_04_9812.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/5135499e031cb8c5db539e45417c8bac.jpg","text":"TemporaryFile(/tmp/multipartBody799029011618916489asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964865422,"filename":"image_06042025_20_39_33_9809.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/026ccb79c78d8cd2f78a3c1a924c9e2a.jpg","text":"TemporaryFile(/tmp/multipartBody9017080254925614065asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964865422,"filename":"image_06042025_20_39_44_10819.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/6eb5c95ed08cbb553491f00530c4882c.jpg","text":"TemporaryFile(/tmp/multipartBody5489476663143217107asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964865422,"filename":"image_06042025_20_39_14_9834.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/3c1328bdbf11771398be4998f53b7270.jpg","text":"TemporaryFile(/tmp/multipartBody6898507988680680387asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964865422,"filename":"image_06042025_20_38_54_9811.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/8cbbdc92941dbb1ac049931a40241bff.jpg","text":"TemporaryFile(/tmp/multipartBody8827014364629488465asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964865422,"filename":"image_06042025_20_39_23_9807.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350183720","file1":"1350183717","file0":"1350183716","file4":"1350183723","file5":"1350183730","file3":"1350183721"},"map_files_photo_id_array":[{"photo_id":"1350183730","filename":"file5"},{"photo_id":"1350183720","filename":"file2"},{"photo_id":"1350183723","filename":"file4"},{"photo_id":"1350183717","filename":"file1"},{"photo_id":"1350183716","filename":"file0"},{"photo_id":"1350183721","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350183723":["hashtag1","hashtag2"]},{"1350183717":["hashtag1","hashtag2"]},{"1350183716":["hashtag1","hashtag2"]},{"1350183721":["hashtag1","hashtag2"]},{"1350183730":["hashtag1","hashtag2"]},{"1350183720":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350183723, 1350183717, 1350183716, 1350183721, 1350183730, 1350183720)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.822221040725708 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 20:41:03.323008
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/20/40/image_06042025_20_40_44_10839.jpg', 2), ('/home/nano/Desktop/images/06042025/20/40/image_06042025_20_40_33_9833.jpg', 2), ('/home/nano/Desktop/images/06042025/20/40/image_06042025_20_40_23_9855.jpg', 2), ('/home/nano/Desktop/images/06042025/20/40/image_06042025_20_40_14_9830.jpg', 2), ('/home/nano/Desktop/images/06042025/20/39/image_06042025_20_40_04_9875.jpg', 2), ('/home/nano/Desktop/images/06042025/20/39/image_06042025_20_39_54_9830.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/20/40/image_06042025_20_40_44_10839.jpg', '/home/nano/Desktop/images/06042025/20/40/image_06042025_20_40_33_9833.jpg', '/home/nano/Desktop/images/06042025/20/40/image_06042025_20_40_23_9855.jpg', '/home/nano/Desktop/images/06042025/20/40/image_06042025_20_40_14_9830.jpg', '/home/nano/Desktop/images/06042025/20/39/image_06042025_20_40_04_9875.jpg', '/home/nano/Desktop/images/06042025/20/39/image_06042025_20_39_54_9830.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/20/40/image_06042025_20_40_44_10839.jpg
/home/nano/Desktop/images/06042025/20/40/image_06042025_20_40_33_9833.jpg
/home/nano/Desktop/images/06042025/20/40/image_06042025_20_40_23_9855.jpg
/home/nano/Desktop/images/06042025/20/40/image_06042025_20_40_14_9830.jpg
/home/nano/Desktop/images/06042025/20/39/image_06042025_20_40_04_9875.jpg
/home/nano/Desktop/images/06042025/20/39/image_06042025_20_39_54_9830.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350183822","1350183836","1350183809","1350183846","1350183810","1350183813"],"photo_ids_order":["1350183809","1350183810","1350183813","1350183822","1350183836","1350183846"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/390c9f7d77bac8ceafe5b62d16305a92.jpg","text":"TemporaryFile(/tmp/multipartBody8143145767730145084asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964925641,"filename":"image_06042025_20_40_14_9830.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e19223f09aab26f500273d143eaca7a6.jpg","text":"TemporaryFile(/tmp/multipartBody8952880649135295241asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964925641,"filename":"image_06042025_20_40_04_9875.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/1ae343205d3272cb9b4c18a313a8afa8.jpg","text":"TemporaryFile(/tmp/multipartBody2155429049101283502asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964925641,"filename":"image_06042025_20_40_44_10839.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4420feeb15dcf5f268d70e48bbd1cea5.jpg","text":"TemporaryFile(/tmp/multipartBody2070667533730855053asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964925641,"filename":"image_06042025_20_39_54_9830.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/1b0e1a7bf0f0722795b05d28c20cc58d.jpg","text":"TemporaryFile(/tmp/multipartBody6916678916433120306asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964925641,"filename":"image_06042025_20_40_33_9833.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c0d0c7ff1d84aab781f6df172f43f0c2.jpg","text":"TemporaryFile(/tmp/multipartBody6241690176062583590asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964925641,"filename":"image_06042025_20_40_23_9855.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350183813","file1":"1350183810","file0":"1350183809","file4":"1350183836","file5":"1350183846","file3":"1350183822"},"map_files_photo_id_array":[{"photo_id":"1350183846","filename":"file5"},{"photo_id":"1350183813","filename":"file2"},{"photo_id":"1350183836","filename":"file4"},{"photo_id":"1350183810","filename":"file1"},{"photo_id":"1350183809","filename":"file0"},{"photo_id":"1350183822","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350183822":["hashtag1","hashtag2"]},{"1350183836":["hashtag1","hashtag2"]},{"1350183809":["hashtag1","hashtag2"]},{"1350183846":["hashtag1","hashtag2"]},{"1350183810":["hashtag1","hashtag2"]},{"1350183813":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350183822, 1350183836, 1350183809, 1350183846, 1350183810, 1350183813)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.56663274765015 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 20:42:02.327972
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/20/41/image_06042025_20_41_44_10646.jpg', 2), ('/home/nano/Desktop/images/06042025/20/41/image_06042025_20_41_33_9636.jpg', 2), ('/home/nano/Desktop/images/06042025/20/41/image_06042025_20_41_24_9638.jpg', 2), ('/home/nano/Desktop/images/06042025/20/41/image_06042025_20_41_14_10669.jpg', 2), ('/home/nano/Desktop/images/06042025/20/40/image_06042025_20_41_03_9636.jpg', 2), ('/home/nano/Desktop/images/06042025/20/40/image_06042025_20_40_54_9639.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/20/41/image_06042025_20_41_44_10646.jpg', '/home/nano/Desktop/images/06042025/20/41/image_06042025_20_41_33_9636.jpg', '/home/nano/Desktop/images/06042025/20/41/image_06042025_20_41_24_9638.jpg', '/home/nano/Desktop/images/06042025/20/41/image_06042025_20_41_14_10669.jpg', '/home/nano/Desktop/images/06042025/20/40/image_06042025_20_41_03_9636.jpg', '/home/nano/Desktop/images/06042025/20/40/image_06042025_20_40_54_9639.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/20/41/image_06042025_20_41_44_10646.jpg
/home/nano/Desktop/images/06042025/20/41/image_06042025_20_41_33_9636.jpg
/home/nano/Desktop/images/06042025/20/41/image_06042025_20_41_24_9638.jpg
/home/nano/Desktop/images/06042025/20/41/image_06042025_20_41_14_10669.jpg
/home/nano/Desktop/images/06042025/20/40/image_06042025_20_41_03_9636.jpg
/home/nano/Desktop/images/06042025/20/40/image_06042025_20_40_54_9639.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350183914","1350183908","1350183892","1350183894","1350183897","1350183906"],"photo_ids_order":["1350183892","1350183894","1350183897","1350183906","1350183908","1350183914"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/693db4a0349408175de6cdfc3a36e3c7.jpg","text":"TemporaryFile(/tmp/multipartBody1230774293648831549asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964983684,"filename":"image_06042025_20_40_54_9639.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/af263477bacfd7809b8eb3f8b1d9b752.jpg","text":"TemporaryFile(/tmp/multipartBody9040999286996274252asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964983684,"filename":"image_06042025_20_41_03_9636.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/3daa1b5ff2af21211818b95367c3e924.jpg","text":"TemporaryFile(/tmp/multipartBody771727713708416047asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964983684,"filename":"image_06042025_20_41_44_10646.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/880f59bc3e2a2a1b88e0083f79b5fa53.jpg","text":"TemporaryFile(/tmp/multipartBody796307108648036829asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964983684,"filename":"image_06042025_20_41_33_9636.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/6252be2642a5eb84edf34228c9c5f864.jpg","text":"TemporaryFile(/tmp/multipartBody2069777754392852578asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964983684,"filename":"image_06042025_20_41_24_9638.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c0b7aa24714784a90cd9769928915b79.jpg","text":"TemporaryFile(/tmp/multipartBody9139033208032761417asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743964983684,"filename":"image_06042025_20_41_14_10669.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350183897","file1":"1350183894","file0":"1350183892","file4":"1350183908","file5":"1350183914","file3":"1350183906"},"map_files_photo_id_array":[{"photo_id":"1350183914","filename":"file5"},{"photo_id":"1350183897","filename":"file2"},{"photo_id":"1350183908","filename":"file4"},{"photo_id":"1350183894","filename":"file1"},{"photo_id":"1350183892","filename":"file0"},{"photo_id":"1350183906","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350183914":["hashtag1","hashtag2"]},{"1350183908":["hashtag1","hashtag2"]},{"1350183892":["hashtag1","hashtag2"]},{"1350183894":["hashtag1","hashtag2"]},{"1350183897":["hashtag1","hashtag2"]},{"1350183906":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350183914, 1350183908, 1350183892, 1350183894, 1350183897, 1350183906)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 45.002437353134155 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 20:43:02.585856
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/20/42/image_06042025_20_42_44_10648.jpg', 2), ('/home/nano/Desktop/images/06042025/20/42/image_06042025_20_42_33_9658.jpg', 2), ('/home/nano/Desktop/images/06042025/20/42/image_06042025_20_42_24_9764.jpg', 2), ('/home/nano/Desktop/images/06042025/20/42/image_06042025_20_42_14_10681.jpg', 2), ('/home/nano/Desktop/images/06042025/20/41/image_06042025_20_42_03_9646.jpg', 2), ('/home/nano/Desktop/images/06042025/20/41/image_06042025_20_41_54_9637.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/20/42/image_06042025_20_42_44_10648.jpg', '/home/nano/Desktop/images/06042025/20/42/image_06042025_20_42_33_9658.jpg', '/home/nano/Desktop/images/06042025/20/42/image_06042025_20_42_24_9764.jpg', '/home/nano/Desktop/images/06042025/20/42/image_06042025_20_42_14_10681.jpg', '/home/nano/Desktop/images/06042025/20/41/image_06042025_20_42_03_9646.jpg', '/home/nano/Desktop/images/06042025/20/41/image_06042025_20_41_54_9637.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/20/42/image_06042025_20_42_44_10648.jpg
/home/nano/Desktop/images/06042025/20/42/image_06042025_20_42_33_9658.jpg
/home/nano/Desktop/images/06042025/20/42/image_06042025_20_42_24_9764.jpg
/home/nano/Desktop/images/06042025/20/42/image_06042025_20_42_14_10681.jpg
/home/nano/Desktop/images/06042025/20/41/image_06042025_20_42_03_9646.jpg
/home/nano/Desktop/images/06042025/20/41/image_06042025_20_41_54_9637.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350183932","1350183937","1350183931","1350183934","1350183930","1350183933"],"photo_ids_order":["1350183930","1350183931","1350183932","1350183933","1350183934","1350183937"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/25104443a47d52fb46c2a38e83d3de55.jpg","text":"TemporaryFile(/tmp/multipartBody7910381438508866558asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965044156,"filename":"image_06042025_20_42_24_9764.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/34f921e42c9ac4f9a8ef60e94e6c15d6.jpg","text":"TemporaryFile(/tmp/multipartBody4401372198143234224asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965044156,"filename":"image_06042025_20_41_54_9637.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/21867fecfdfc26c59e1914f9b60f2047.jpg","text":"TemporaryFile(/tmp/multipartBody8951281202877235386asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965044156,"filename":"image_06042025_20_42_33_9658.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/5ed04770dc47d8dea2c79d05221e52b1.jpg","text":"TemporaryFile(/tmp/multipartBody4123048974106254042asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965044156,"filename":"image_06042025_20_42_03_9646.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/68fe083158468897c6dbb9d1219a0153.jpg","text":"TemporaryFile(/tmp/multipartBody192840679113950718asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965044156,"filename":"image_06042025_20_42_44_10648.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/59e50a058f512d5c7d8efdc42f966e36.jpg","text":"TemporaryFile(/tmp/multipartBody529674889891736217asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965044156,"filename":"image_06042025_20_42_14_10681.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350183932","file1":"1350183931","file0":"1350183930","file4":"1350183934","file5":"1350183937","file3":"1350183933"},"map_files_photo_id_array":[{"photo_id":"1350183937","filename":"file5"},{"photo_id":"1350183932","filename":"file2"},{"photo_id":"1350183934","filename":"file4"},{"photo_id":"1350183931","filename":"file1"},{"photo_id":"1350183930","filename":"file0"},{"photo_id":"1350183933","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350183932":["hashtag1","hashtag2"]},{"1350183937":["hashtag1","hashtag2"]},{"1350183931":["hashtag1","hashtag2"]},{"1350183934":["hashtag1","hashtag2"]},{"1350183930":["hashtag1","hashtag2"]},{"1350183933":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350183932, 1350183937, 1350183931, 1350183934, 1350183930, 1350183933)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.03173303604126 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 20:44:02.804018
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/20/43/image_06042025_20_43_44_10647.jpg', 2), ('/home/nano/Desktop/images/06042025/20/43/image_06042025_20_43_33_9663.jpg', 2), ('/home/nano/Desktop/images/06042025/20/43/image_06042025_20_43_24_9645.jpg', 2), ('/home/nano/Desktop/images/06042025/20/43/image_06042025_20_43_14_10825.jpg', 2), ('/home/nano/Desktop/images/06042025/20/42/image_06042025_20_43_03_9650.jpg', 2), ('/home/nano/Desktop/images/06042025/20/42/image_06042025_20_42_54_9638.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/20/43/image_06042025_20_43_44_10647.jpg', '/home/nano/Desktop/images/06042025/20/43/image_06042025_20_43_33_9663.jpg', '/home/nano/Desktop/images/06042025/20/43/image_06042025_20_43_24_9645.jpg', '/home/nano/Desktop/images/06042025/20/43/image_06042025_20_43_14_10825.jpg', '/home/nano/Desktop/images/06042025/20/42/image_06042025_20_43_03_9650.jpg', '/home/nano/Desktop/images/06042025/20/42/image_06042025_20_42_54_9638.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/20/43/image_06042025_20_43_44_10647.jpg
/home/nano/Desktop/images/06042025/20/43/image_06042025_20_43_33_9663.jpg
/home/nano/Desktop/images/06042025/20/43/image_06042025_20_43_24_9645.jpg
/home/nano/Desktop/images/06042025/20/43/image_06042025_20_43_14_10825.jpg
/home/nano/Desktop/images/06042025/20/42/image_06042025_20_43_03_9650.jpg
/home/nano/Desktop/images/06042025/20/42/image_06042025_20_42_54_9638.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350183989","1350183974","1350183991","1350183997","1350184000","1350183981"],"photo_ids_order":["1350183974","1350183981","1350183989","1350183991","1350183997","1350184000"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c6321f1de5f2a81ed6fd784635072531.jpg","text":"TemporaryFile(/tmp/multipartBody4125710541732083806asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965104635,"filename":"image_06042025_20_43_24_9645.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/036447c7412a7b65914863bf4ce5c70b.jpg","text":"TemporaryFile(/tmp/multipartBody1926439640375310594asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965104635,"filename":"image_06042025_20_43_44_10647.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/6f1c75bf03ef2e6cc9624762b88fbf03.jpg","text":"TemporaryFile(/tmp/multipartBody7819622388776384563asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965104635,"filename":"image_06042025_20_43_14_10825.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/2250de04d6b8c4fcb09e315ed98b5d6b.jpg","text":"TemporaryFile(/tmp/multipartBody2835985980906161377asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965104635,"filename":"image_06042025_20_43_03_9650.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/600958c40ee3aeb4965e289bbdbd246d.jpg","text":"TemporaryFile(/tmp/multipartBody3129109798630716443asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965104635,"filename":"image_06042025_20_42_54_9638.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/00b2fa6752c5658eb38b6a3aca1b2a7d.jpg","text":"TemporaryFile(/tmp/multipartBody6221614714854076227asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965104635,"filename":"image_06042025_20_43_33_9663.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350183989","file1":"1350183981","file0":"1350183974","file4":"1350183997","file5":"1350184000","file3":"1350183991"},"map_files_photo_id_array":[{"photo_id":"1350184000","filename":"file5"},{"photo_id":"1350183989","filename":"file2"},{"photo_id":"1350183997","filename":"file4"},{"photo_id":"1350183981","filename":"file1"},{"photo_id":"1350183974","filename":"file0"},{"photo_id":"1350183991","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350183989":["hashtag1","hashtag2"]},{"1350183974":["hashtag1","hashtag2"]},{"1350183991":["hashtag1","hashtag2"]},{"1350183997":["hashtag1","hashtag2"]},{"1350184000":["hashtag1","hashtag2"]},{"1350183981":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350183989, 1350183974, 1350183991, 1350183997, 1350184000, 1350183981)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.856971979141235 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 20:45:03.032626
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/20/44/image_06042025_20_44_34_9784.jpg', 2), ('/home/nano/Desktop/images/06042025/20/44/image_06042025_20_44_24_9657.jpg', 2), ('/home/nano/Desktop/images/06042025/20/44/image_06042025_20_44_14_10665.jpg', 2), ('/home/nano/Desktop/images/06042025/20/43/image_06042025_20_44_03_9652.jpg', 2), ('/home/nano/Desktop/images/06042025/20/43/image_06042025_20_43_54_9703.jpg', 2), ('/home/nano/Desktop/images/06042025/19/58/image_06042025_19_59_03_9777.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/20/44/image_06042025_20_44_34_9784.jpg', '/home/nano/Desktop/images/06042025/20/44/image_06042025_20_44_24_9657.jpg', '/home/nano/Desktop/images/06042025/20/44/image_06042025_20_44_14_10665.jpg', '/home/nano/Desktop/images/06042025/20/43/image_06042025_20_44_03_9652.jpg', '/home/nano/Desktop/images/06042025/20/43/image_06042025_20_43_54_9703.jpg', '/home/nano/Desktop/images/06042025/19/58/image_06042025_19_59_03_9777.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/20/44/image_06042025_20_44_34_9784.jpg
/home/nano/Desktop/images/06042025/20/44/image_06042025_20_44_24_9657.jpg
/home/nano/Desktop/images/06042025/20/44/image_06042025_20_44_14_10665.jpg
/home/nano/Desktop/images/06042025/20/43/image_06042025_20_44_03_9652.jpg
/home/nano/Desktop/images/06042025/20/43/image_06042025_20_43_54_9703.jpg
/home/nano/Desktop/images/06042025/19/58/image_06042025_19_59_03_9777.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350184052","1350184049","1350184043","1350184042","1350184045","1350184047"],"photo_ids_order":["1350184042","1350184043","1350184045","1350184047","1350184049","1350184052"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/6bdaf7b6108c125b758ede23a5283032.jpg","text":"TemporaryFile(/tmp/multipartBody6171357414828710693asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965165235,"filename":"image_06042025_19_59_03_9777.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/cec4e2612eb256f36aceb1cd8e16ad12.jpg","text":"TemporaryFile(/tmp/multipartBody162612792362091714asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965165235,"filename":"image_06042025_20_43_54_9703.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/2a5a98685732c671d47518019972d90a.jpg","text":"TemporaryFile(/tmp/multipartBody2028292874563327765asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965165235,"filename":"image_06042025_20_44_24_9657.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ee4c7a5e4d679f87f50c68f368fc114d.jpg","text":"TemporaryFile(/tmp/multipartBody2029166603488115513asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965165235,"filename":"image_06042025_20_44_34_9784.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/af84d8e192155d53eeaa770b457b8863.jpg","text":"TemporaryFile(/tmp/multipartBody6851764720262118545asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965165235,"filename":"image_06042025_20_44_14_10665.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/cfa14df17fe9d414c9f42d6242bf4b80.jpg","text":"TemporaryFile(/tmp/multipartBody446494572677553462asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965165235,"filename":"image_06042025_20_44_03_9652.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350184045","file1":"1350184043","file0":"1350184042","file4":"1350184049","file5":"1350184052","file3":"1350184047"},"map_files_photo_id_array":[{"photo_id":"1350184052","filename":"file5"},{"photo_id":"1350184045","filename":"file2"},{"photo_id":"1350184049","filename":"file4"},{"photo_id":"1350184043","filename":"file1"},{"photo_id":"1350184042","filename":"file0"},{"photo_id":"1350184047","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350184052":["hashtag1","hashtag2"]},{"1350184049":["hashtag1","hashtag2"]},{"1350184043":["hashtag1","hashtag2"]},{"1350184042":["hashtag1","hashtag2"]},{"1350184045":["hashtag1","hashtag2"]},{"1350184047":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350184052, 1350184049, 1350184043, 1350184042, 1350184045, 1350184047)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.062729358673096 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 20:46:02.777546
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/20/45/image_06042025_20_45_44_9793.jpg', 2), ('/home/nano/Desktop/images/06042025/20/45/image_06042025_20_45_34_10804.jpg', 2), ('/home/nano/Desktop/images/06042025/20/45/image_06042025_20_45_23_9797.jpg', 2), ('/home/nano/Desktop/images/06042025/20/45/image_06042025_20_45_13_9817.jpg', 2), ('/home/nano/Desktop/images/06042025/20/44/image_06042025_20_45_04_9645.jpg', 2), ('/home/nano/Desktop/images/06042025/20/44/image_06042025_20_44_43_9784.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/20/45/image_06042025_20_45_44_9793.jpg', '/home/nano/Desktop/images/06042025/20/45/image_06042025_20_45_34_10804.jpg', '/home/nano/Desktop/images/06042025/20/45/image_06042025_20_45_23_9797.jpg', '/home/nano/Desktop/images/06042025/20/45/image_06042025_20_45_13_9817.jpg', '/home/nano/Desktop/images/06042025/20/44/image_06042025_20_45_04_9645.jpg', '/home/nano/Desktop/images/06042025/20/44/image_06042025_20_44_43_9784.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/20/45/image_06042025_20_45_44_9793.jpg
/home/nano/Desktop/images/06042025/20/45/image_06042025_20_45_34_10804.jpg
/home/nano/Desktop/images/06042025/20/45/image_06042025_20_45_23_9797.jpg
/home/nano/Desktop/images/06042025/20/45/image_06042025_20_45_13_9817.jpg
/home/nano/Desktop/images/06042025/20/44/image_06042025_20_45_04_9645.jpg
/home/nano/Desktop/images/06042025/20/44/image_06042025_20_44_43_9784.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350184084","1350184129","1350184083","1350184080","1350184077","1350184070"],"photo_ids_order":["1350184070","1350184077","1350184080","1350184083","1350184084","1350184129"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/6253a92dafb9e55e305fe4ba1e458407.jpg","text":"TemporaryFile(/tmp/multipartBody3841500268578477966asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965225012,"filename":"image_06042025_20_45_04_9645.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/6c82730fe738b6fd786b3ffd9f398075.jpg","text":"TemporaryFile(/tmp/multipartBody5772954518991768281asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965225012,"filename":"image_06042025_20_44_43_9784.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/53dcb5f1a23de1497a9cbf2d85ac2b1a.jpg","text":"TemporaryFile(/tmp/multipartBody6924593021015370196asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965225012,"filename":"image_06042025_20_45_13_9817.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a6d54bf2546cb26af2cc092407e8153e.jpg","text":"TemporaryFile(/tmp/multipartBody4181432662703133457asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965225012,"filename":"image_06042025_20_45_23_9797.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/cf106521b03e7257df14c7c5d8c797a2.jpg","text":"TemporaryFile(/tmp/multipartBody8541165113237476644asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965225012,"filename":"image_06042025_20_45_34_10804.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/6a4147f73201a123a4964b7eca1b48ef.jpg","text":"TemporaryFile(/tmp/multipartBody7737452028472896455asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965225012,"filename":"image_06042025_20_45_44_9793.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350184080","file1":"1350184077","file0":"1350184070","file4":"1350184084","file5":"1350184129","file3":"1350184083"},"map_files_photo_id_array":[{"photo_id":"1350184129","filename":"file5"},{"photo_id":"1350184080","filename":"file2"},{"photo_id":"1350184084","filename":"file4"},{"photo_id":"1350184077","filename":"file1"},{"photo_id":"1350184070","filename":"file0"},{"photo_id":"1350184083","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350184084":["hashtag1","hashtag2"]},{"1350184129":["hashtag1","hashtag2"]},{"1350184083":["hashtag1","hashtag2"]},{"1350184080":["hashtag1","hashtag2"]},{"1350184077":["hashtag1","hashtag2"]},{"1350184070":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350184084, 1350184129, 1350184083, 1350184080, 1350184077, 1350184070)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.71401262283325 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 20:47:02.987405
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/20/46/image_06042025_20_46_43_9643.jpg', 2), ('/home/nano/Desktop/images/06042025/20/46/image_06042025_20_46_34_9644.jpg', 2), ('/home/nano/Desktop/images/06042025/20/46/image_06042025_20_46_24_10652.jpg', 2), ('/home/nano/Desktop/images/06042025/20/46/image_06042025_20_46_13_9888.jpg', 2), ('/home/nano/Desktop/images/06042025/20/45/image_06042025_20_46_03_9820.jpg', 2), ('/home/nano/Desktop/images/06042025/20/45/image_06042025_20_45_54_9789.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/20/46/image_06042025_20_46_43_9643.jpg', '/home/nano/Desktop/images/06042025/20/46/image_06042025_20_46_34_9644.jpg', '/home/nano/Desktop/images/06042025/20/46/image_06042025_20_46_24_10652.jpg', '/home/nano/Desktop/images/06042025/20/46/image_06042025_20_46_13_9888.jpg', '/home/nano/Desktop/images/06042025/20/45/image_06042025_20_46_03_9820.jpg', '/home/nano/Desktop/images/06042025/20/45/image_06042025_20_45_54_9789.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/20/46/image_06042025_20_46_43_9643.jpg
/home/nano/Desktop/images/06042025/20/46/image_06042025_20_46_34_9644.jpg
/home/nano/Desktop/images/06042025/20/46/image_06042025_20_46_24_10652.jpg
/home/nano/Desktop/images/06042025/20/46/image_06042025_20_46_13_9888.jpg
/home/nano/Desktop/images/06042025/20/45/image_06042025_20_46_03_9820.jpg
/home/nano/Desktop/images/06042025/20/45/image_06042025_20_45_54_9789.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350184166","1350184170","1350184164","1350184167","1350184161","1350184158"],"photo_ids_order":["1350184158","1350184161","1350184164","1350184166","1350184167","1350184170"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ec555524b29c1a460e965dd5fb508915.jpg","text":"TemporaryFile(/tmp/multipartBody690245927147684961asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965284982,"filename":"image_06042025_20_46_13_9888.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b66bcc43a20b78c1f24e9fe069758403.jpg","text":"TemporaryFile(/tmp/multipartBody1972117675688458829asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965284982,"filename":"image_06042025_20_45_54_9789.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4c37c1345e31d123e620c7e5dd0b6c8a.jpg","text":"TemporaryFile(/tmp/multipartBody6134974516428188207asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965284982,"filename":"image_06042025_20_46_24_10652.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/aa327bfa89fa212d4782bdea2ca160b7.jpg","text":"TemporaryFile(/tmp/multipartBody1922780725892884998asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965284982,"filename":"image_06042025_20_46_03_9820.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/55830a6f5a1ce098c3f20979595519af.jpg","text":"TemporaryFile(/tmp/multipartBody2174509695372933249asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965284982,"filename":"image_06042025_20_46_34_9644.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/2f6251b79cfce1b58777a2db4b9d06e8.jpg","text":"TemporaryFile(/tmp/multipartBody6545460429705111275asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965284982,"filename":"image_06042025_20_46_43_9643.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350184164","file1":"1350184161","file0":"1350184158","file4":"1350184167","file5":"1350184170","file3":"1350184166"},"map_files_photo_id_array":[{"photo_id":"1350184170","filename":"file5"},{"photo_id":"1350184164","filename":"file2"},{"photo_id":"1350184167","filename":"file4"},{"photo_id":"1350184161","filename":"file1"},{"photo_id":"1350184158","filename":"file0"},{"photo_id":"1350184166","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350184166":["hashtag1","hashtag2"]},{"1350184170":["hashtag1","hashtag2"]},{"1350184164":["hashtag1","hashtag2"]},{"1350184167":["hashtag1","hashtag2"]},{"1350184161":["hashtag1","hashtag2"]},{"1350184158":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350184166, 1350184170, 1350184164, 1350184167, 1350184161, 1350184158)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.61546730995178 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 20:48:02.969039
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/20/47/image_06042025_20_47_43_9662.jpg', 2), ('/home/nano/Desktop/images/06042025/20/47/image_06042025_20_47_34_9662.jpg', 2), ('/home/nano/Desktop/images/06042025/20/47/image_06042025_20_47_13_9662.jpg', 2), ('/home/nano/Desktop/images/06042025/20/46/image_06042025_20_47_04_9616.jpg', 2), ('/home/nano/Desktop/images/06042025/20/46/image_06042025_20_46_54_10668.jpg', 2), ('/home/nano/Desktop/images/06042025/19/58/image_06042025_19_58_53_9815.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/20/47/image_06042025_20_47_43_9662.jpg', '/home/nano/Desktop/images/06042025/20/47/image_06042025_20_47_34_9662.jpg', '/home/nano/Desktop/images/06042025/20/47/image_06042025_20_47_13_9662.jpg', '/home/nano/Desktop/images/06042025/20/46/image_06042025_20_47_04_9616.jpg', '/home/nano/Desktop/images/06042025/20/46/image_06042025_20_46_54_10668.jpg', '/home/nano/Desktop/images/06042025/19/58/image_06042025_19_58_53_9815.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/20/47/image_06042025_20_47_43_9662.jpg
/home/nano/Desktop/images/06042025/20/47/image_06042025_20_47_34_9662.jpg
/home/nano/Desktop/images/06042025/20/47/image_06042025_20_47_13_9662.jpg
/home/nano/Desktop/images/06042025/20/46/image_06042025_20_47_04_9616.jpg
/home/nano/Desktop/images/06042025/20/46/image_06042025_20_46_54_10668.jpg
/home/nano/Desktop/images/06042025/19/58/image_06042025_19_58_53_9815.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350184194","1350184200","1350184203","1350184193","1350184199","1350184190"],"photo_ids_order":["1350184190","1350184193","1350184194","1350184199","1350184200","1350184203"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/0eeedaeda2d47a8bf9d8e041b50d59b0.jpg","text":"TemporaryFile(/tmp/multipartBody1956512054390960010asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965344490,"filename":"image_06042025_20_47_13_9662.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e6fd11bcf35bbf7bf3a2f5b4c00fa07b.jpg","text":"TemporaryFile(/tmp/multipartBody3361098698405034959asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965344490,"filename":"image_06042025_20_46_54_10668.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/09f00cf667faffbf0780e4037895f813.jpg","text":"TemporaryFile(/tmp/multipartBody6716909727370276689asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965344490,"filename":"image_06042025_19_58_53_9815.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/49d8738a03054e6df4acc3c26de6f975.jpg","text":"TemporaryFile(/tmp/multipartBody3003596870287521430asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965344490,"filename":"image_06042025_20_47_34_9662.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c4fb52cb1d39294274c10eb94a01c918.jpg","text":"TemporaryFile(/tmp/multipartBody7025451486432362234asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965344490,"filename":"image_06042025_20_47_04_9616.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c74f3c7e9db57e07cdebc8fb9667552b.jpg","text":"TemporaryFile(/tmp/multipartBody4404983093731784232asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965344490,"filename":"image_06042025_20_47_43_9662.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350184194","file1":"1350184193","file0":"1350184190","file4":"1350184200","file5":"1350184203","file3":"1350184199"},"map_files_photo_id_array":[{"photo_id":"1350184203","filename":"file5"},{"photo_id":"1350184194","filename":"file2"},{"photo_id":"1350184200","filename":"file4"},{"photo_id":"1350184193","filename":"file1"},{"photo_id":"1350184190","filename":"file0"},{"photo_id":"1350184199","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350184194":["hashtag1","hashtag2"]},{"1350184200":["hashtag1","hashtag2"]},{"1350184203":["hashtag1","hashtag2"]},{"1350184193":["hashtag1","hashtag2"]},{"1350184199":["hashtag1","hashtag2"]},{"1350184190":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350184194, 1350184200, 1350184203, 1350184193, 1350184199, 1350184190)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 38.665419816970825 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 20:49:03.619103
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/20/48/image_06042025_20_48_33_9641.jpg', 2), ('/home/nano/Desktop/images/06042025/20/48/image_06042025_20_48_24_10654.jpg', 2), ('/home/nano/Desktop/images/06042025/20/48/image_06042025_20_48_13_9663.jpg', 2), ('/home/nano/Desktop/images/06042025/20/47/image_06042025_20_48_03_9669.jpg', 2), ('/home/nano/Desktop/images/06042025/20/47/image_06042025_20_47_54_10653.jpg', 2), ('/home/nano/Desktop/images/06042025/19/58/image_06042025_19_58_44_9801.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/20/48/image_06042025_20_48_33_9641.jpg', '/home/nano/Desktop/images/06042025/20/48/image_06042025_20_48_24_10654.jpg', '/home/nano/Desktop/images/06042025/20/48/image_06042025_20_48_13_9663.jpg', '/home/nano/Desktop/images/06042025/20/47/image_06042025_20_48_03_9669.jpg', '/home/nano/Desktop/images/06042025/20/47/image_06042025_20_47_54_10653.jpg', '/home/nano/Desktop/images/06042025/19/58/image_06042025_19_58_44_9801.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/20/48/image_06042025_20_48_33_9641.jpg
/home/nano/Desktop/images/06042025/20/48/image_06042025_20_48_24_10654.jpg
/home/nano/Desktop/images/06042025/20/48/image_06042025_20_48_13_9663.jpg
/home/nano/Desktop/images/06042025/20/47/image_06042025_20_48_03_9669.jpg
/home/nano/Desktop/images/06042025/20/47/image_06042025_20_47_54_10653.jpg
/home/nano/Desktop/images/06042025/19/58/image_06042025_19_58_44_9801.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350184226","1350184223","1350184225","1350184228","1350184233","1350184230"],"photo_ids_order":["1350184223","1350184225","1350184226","1350184228","1350184230","1350184233"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/42cbda1af1fbd44425fdf0ce892952c1.jpg","text":"TemporaryFile(/tmp/multipartBody2737377803987369445asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965405613,"filename":"image_06042025_20_48_13_9663.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ea0001e0f9961e7e3b096aa1484d6ea7.jpg","text":"TemporaryFile(/tmp/multipartBody59484920176155175asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965405613,"filename":"image_06042025_20_48_33_9641.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/40d1b78043053f09282930a5cfaacb21.jpg","text":"TemporaryFile(/tmp/multipartBody3982002948845415861asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965405613,"filename":"image_06042025_20_48_24_10654.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/2648deb2cb71b73b3e4292ec0f8c72b4.jpg","text":"TemporaryFile(/tmp/multipartBody2692252529502669610asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965405613,"filename":"image_06042025_20_48_03_9669.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/03b1588a2ff968a7180180467ec5b559.jpg","text":"TemporaryFile(/tmp/multipartBody5571606786812830072asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965405613,"filename":"image_06042025_19_58_44_9801.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c2272920fdf939ea8828e81bc529ef55.jpg","text":"TemporaryFile(/tmp/multipartBody6963988547337538492asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965405613,"filename":"image_06042025_20_47_54_10653.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350184226","file1":"1350184225","file0":"1350184223","file4":"1350184230","file5":"1350184233","file3":"1350184228"},"map_files_photo_id_array":[{"photo_id":"1350184233","filename":"file5"},{"photo_id":"1350184226","filename":"file2"},{"photo_id":"1350184230","filename":"file4"},{"photo_id":"1350184225","filename":"file1"},{"photo_id":"1350184223","filename":"file0"},{"photo_id":"1350184228","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350184226":["hashtag1","hashtag2"]},{"1350184223":["hashtag1","hashtag2"]},{"1350184225":["hashtag1","hashtag2"]},{"1350184228":["hashtag1","hashtag2"]},{"1350184233":["hashtag1","hashtag2"]},{"1350184230":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350184226, 1350184223, 1350184225, 1350184228, 1350184233, 1350184230)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.651589155197144 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 20:50:03.112124
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/20/49/image_06042025_20_49_44_10653.jpg', 2), ('/home/nano/Desktop/images/06042025/20/49/image_06042025_20_49_33_9640.jpg', 2), ('/home/nano/Desktop/images/06042025/20/49/image_06042025_20_49_14_10665.jpg', 2), ('/home/nano/Desktop/images/06042025/20/48/image_06042025_20_49_03_9669.jpg', 2), ('/home/nano/Desktop/images/06042025/20/48/image_06042025_20_48_54_9640.jpg', 2), ('/home/nano/Desktop/images/06042025/19/58/image_06042025_19_58_34_9800.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/20/49/image_06042025_20_49_44_10653.jpg', '/home/nano/Desktop/images/06042025/20/49/image_06042025_20_49_33_9640.jpg', '/home/nano/Desktop/images/06042025/20/49/image_06042025_20_49_14_10665.jpg', '/home/nano/Desktop/images/06042025/20/48/image_06042025_20_49_03_9669.jpg', '/home/nano/Desktop/images/06042025/20/48/image_06042025_20_48_54_9640.jpg', '/home/nano/Desktop/images/06042025/19/58/image_06042025_19_58_34_9800.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/20/49/image_06042025_20_49_44_10653.jpg
/home/nano/Desktop/images/06042025/20/49/image_06042025_20_49_33_9640.jpg
/home/nano/Desktop/images/06042025/20/49/image_06042025_20_49_14_10665.jpg
/home/nano/Desktop/images/06042025/20/48/image_06042025_20_49_03_9669.jpg
/home/nano/Desktop/images/06042025/20/48/image_06042025_20_48_54_9640.jpg
/home/nano/Desktop/images/06042025/19/58/image_06042025_19_58_34_9800.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350184313","1350184307","1350184297","1350184300","1350184293","1350184302"],"photo_ids_order":["1350184293","1350184297","1350184300","1350184302","1350184307","1350184313"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/2002745526dbab8f203e32ffda459076.jpg","text":"TemporaryFile(/tmp/multipartBody7101114116844369959asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965464928,"filename":"image_06042025_19_58_34_9800.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4c6bcd8d31361a05017576c54c366505.jpg","text":"TemporaryFile(/tmp/multipartBody6706368541402427198asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965464928,"filename":"image_06042025_20_48_54_9640.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c0bcfc4320873fe49895ea4e90d17d86.jpg","text":"TemporaryFile(/tmp/multipartBody3046534918049928535asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965464928,"filename":"image_06042025_20_49_33_9640.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/d07629627d02c23b59e92232917dcd2d.jpg","text":"TemporaryFile(/tmp/multipartBody4329180114574798944asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965464928,"filename":"image_06042025_20_49_14_10665.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b21c54fd8c2f2eb003f07a0e2946e98b.jpg","text":"TemporaryFile(/tmp/multipartBody387519363573934296asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965464928,"filename":"image_06042025_20_49_44_10653.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a92b91a89175e0364b86f6d392265a75.jpg","text":"TemporaryFile(/tmp/multipartBody3474933600867432803asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965464928,"filename":"image_06042025_20_49_03_9669.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350184300","file1":"1350184297","file0":"1350184293","file4":"1350184307","file5":"1350184313","file3":"1350184302"},"map_files_photo_id_array":[{"photo_id":"1350184313","filename":"file5"},{"photo_id":"1350184300","filename":"file2"},{"photo_id":"1350184307","filename":"file4"},{"photo_id":"1350184297","filename":"file1"},{"photo_id":"1350184293","filename":"file0"},{"photo_id":"1350184302","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350184313":["hashtag1","hashtag2"]},{"1350184307":["hashtag1","hashtag2"]},{"1350184297":["hashtag1","hashtag2"]},{"1350184300":["hashtag1","hashtag2"]},{"1350184293":["hashtag1","hashtag2"]},{"1350184302":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350184313, 1350184307, 1350184297, 1350184300, 1350184293, 1350184302)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.72027826309204 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 20:51:02.527738
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/20/50/image_06042025_20_50_44_10650.jpg', 2), ('/home/nano/Desktop/images/06042025/20/50/image_06042025_20_50_24_9640.jpg', 2), ('/home/nano/Desktop/images/06042025/20/49/image_06042025_20_50_03_9665.jpg', 2), ('/home/nano/Desktop/images/06042025/20/49/image_06042025_20_49_54_9639.jpg', 2), ('/home/nano/Desktop/images/06042025/19/58/image_06042025_19_58_24_10807.jpg', 2), ('/home/nano/Desktop/images/06042025/19/58/image_06042025_19_58_13_9824.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/20/50/image_06042025_20_50_44_10650.jpg', '/home/nano/Desktop/images/06042025/20/50/image_06042025_20_50_24_9640.jpg', '/home/nano/Desktop/images/06042025/20/49/image_06042025_20_50_03_9665.jpg', '/home/nano/Desktop/images/06042025/20/49/image_06042025_20_49_54_9639.jpg', '/home/nano/Desktop/images/06042025/19/58/image_06042025_19_58_24_10807.jpg', '/home/nano/Desktop/images/06042025/19/58/image_06042025_19_58_13_9824.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/20/50/image_06042025_20_50_44_10650.jpg
/home/nano/Desktop/images/06042025/20/50/image_06042025_20_50_24_9640.jpg
/home/nano/Desktop/images/06042025/20/49/image_06042025_20_50_03_9665.jpg
/home/nano/Desktop/images/06042025/20/49/image_06042025_20_49_54_9639.jpg
/home/nano/Desktop/images/06042025/19/58/image_06042025_19_58_24_10807.jpg
/home/nano/Desktop/images/06042025/19/58/image_06042025_19_58_13_9824.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350184346","1350184340","1350184333","1350184342","1350184336","1350184329"],"photo_ids_order":["1350184329","1350184333","1350184336","1350184340","1350184342","1350184346"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/cc8e8d1dec8416cba17b43cb7fbb5e93.jpg","text":"TemporaryFile(/tmp/multipartBody7952658611840744158asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965524253,"filename":"image_06042025_19_58_13_9824.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e74cd2549cd839df18b6cbf914561dab.jpg","text":"TemporaryFile(/tmp/multipartBody3408171971490050749asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965524253,"filename":"image_06042025_20_49_54_9639.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c9876edd81b30a2fcea70c280f14c20b.jpg","text":"TemporaryFile(/tmp/multipartBody1010558734632315378asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965524253,"filename":"image_06042025_20_50_24_9640.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b4ff3beb1ac44d36940ff16664b9c862.jpg","text":"TemporaryFile(/tmp/multipartBody1958874455191828329asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965524253,"filename":"image_06042025_19_58_24_10807.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ec4a74dded70783975173265c288ae37.jpg","text":"TemporaryFile(/tmp/multipartBody4409208440266118639asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965524253,"filename":"image_06042025_20_50_03_9665.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ec9e7c4cb228d638bf3605513b28de37.jpg","text":"TemporaryFile(/tmp/multipartBody839662093259862862asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965524253,"filename":"image_06042025_20_50_44_10650.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350184336","file1":"1350184333","file0":"1350184329","file4":"1350184342","file5":"1350184346","file3":"1350184340"},"map_files_photo_id_array":[{"photo_id":"1350184346","filename":"file5"},{"photo_id":"1350184336","filename":"file2"},{"photo_id":"1350184342","filename":"file4"},{"photo_id":"1350184333","filename":"file1"},{"photo_id":"1350184329","filename":"file0"},{"photo_id":"1350184340","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350184346":["hashtag1","hashtag2"]},{"1350184340":["hashtag1","hashtag2"]},{"1350184333":["hashtag1","hashtag2"]},{"1350184342":["hashtag1","hashtag2"]},{"1350184336":["hashtag1","hashtag2"]},{"1350184329":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350184346, 1350184340, 1350184333, 1350184342, 1350184336, 1350184329)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.116814613342285 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 20:52:02.424838
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/20/51/image_06042025_20_51_44_10651.jpg', 2), ('/home/nano/Desktop/images/06042025/20/51/image_06042025_20_51_33_9640.jpg', 2), ('/home/nano/Desktop/images/06042025/20/51/image_06042025_20_51_14_10670.jpg', 2), ('/home/nano/Desktop/images/06042025/20/50/image_06042025_20_51_03_9640.jpg', 2), ('/home/nano/Desktop/images/06042025/20/50/image_06042025_20_50_54_9639.jpg', 2), ('/home/nano/Desktop/images/06042025/19/57/image_06042025_19_58_03_9806.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/20/51/image_06042025_20_51_44_10651.jpg', '/home/nano/Desktop/images/06042025/20/51/image_06042025_20_51_33_9640.jpg', '/home/nano/Desktop/images/06042025/20/51/image_06042025_20_51_14_10670.jpg', '/home/nano/Desktop/images/06042025/20/50/image_06042025_20_51_03_9640.jpg', '/home/nano/Desktop/images/06042025/20/50/image_06042025_20_50_54_9639.jpg', '/home/nano/Desktop/images/06042025/19/57/image_06042025_19_58_03_9806.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/20/51/image_06042025_20_51_44_10651.jpg
/home/nano/Desktop/images/06042025/20/51/image_06042025_20_51_33_9640.jpg
/home/nano/Desktop/images/06042025/20/51/image_06042025_20_51_14_10670.jpg
/home/nano/Desktop/images/06042025/20/50/image_06042025_20_51_03_9640.jpg
/home/nano/Desktop/images/06042025/20/50/image_06042025_20_50_54_9639.jpg
/home/nano/Desktop/images/06042025/19/57/image_06042025_19_58_03_9806.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 1.707434892654419 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 20:52:31.893816
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/20/52/image_06042025_20_52_44_9631.jpg', 2), ('/home/nano/Desktop/images/06042025/20/52/image_06042025_20_52_34_10645.jpg', 2), ('/home/nano/Desktop/images/06042025/20/52/image_06042025_20_52_23_9650.jpg', 2), ('/home/nano/Desktop/images/06042025/20/52/image_06042025_20_52_14_9674.jpg', 2), ('/home/nano/Desktop/images/06042025/20/51/image_06042025_20_52_04_10692.jpg', 2), ('/home/nano/Desktop/images/06042025/20/51/image_06042025_20_51_53_9650.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/20/52/image_06042025_20_52_44_9631.jpg', '/home/nano/Desktop/images/06042025/20/52/image_06042025_20_52_34_10645.jpg', '/home/nano/Desktop/images/06042025/20/52/image_06042025_20_52_23_9650.jpg', '/home/nano/Desktop/images/06042025/20/52/image_06042025_20_52_14_9674.jpg', '/home/nano/Desktop/images/06042025/20/51/image_06042025_20_52_04_10692.jpg', '/home/nano/Desktop/images/06042025/20/51/image_06042025_20_51_53_9650.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/20/52/image_06042025_20_52_44_9631.jpg
/home/nano/Desktop/images/06042025/20/52/image_06042025_20_52_34_10645.jpg
/home/nano/Desktop/images/06042025/20/52/image_06042025_20_52_23_9650.jpg
/home/nano/Desktop/images/06042025/20/52/image_06042025_20_52_14_9674.jpg
/home/nano/Desktop/images/06042025/20/51/image_06042025_20_52_04_10692.jpg
/home/nano/Desktop/images/06042025/20/51/image_06042025_20_51_53_9650.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350184433","1350184406","1350184409","1350184402","1350184419","1350184416"],"photo_ids_order":["1350184402","1350184406","1350184409","1350184416","1350184419","1350184433"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/0a7814927eeae4020976d3b230fcd32c.jpg","text":"TemporaryFile(/tmp/multipartBody6461936457295099854asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965613641,"filename":"image_06042025_20_51_53_9650.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/63c7a13bd0fec9fa2ef6e7dce5e9cc5c.jpg","text":"TemporaryFile(/tmp/multipartBody49744186197500703asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965613641,"filename":"image_06042025_20_52_34_10645.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4df266f39288a96d184edaee105483c2.jpg","text":"TemporaryFile(/tmp/multipartBody2290422717130372864asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965613641,"filename":"image_06042025_20_52_23_9650.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e22c1aca3112b5840f0aa63ca06e77aa.jpg","text":"TemporaryFile(/tmp/multipartBody4192944399200475849asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965613641,"filename":"image_06042025_20_52_44_9631.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/438512b3f8397ed2a2dbc6d6c3911b48.jpg","text":"TemporaryFile(/tmp/multipartBody5669053350769751242asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965613641,"filename":"image_06042025_20_52_04_10692.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/80b8ab4ce51ff6df41adb0e2338cf316.jpg","text":"TemporaryFile(/tmp/multipartBody5057319001310642299asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965613641,"filename":"image_06042025_20_52_14_9674.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350184409","file1":"1350184406","file0":"1350184402","file4":"1350184419","file5":"1350184433","file3":"1350184416"},"map_files_photo_id_array":[{"photo_id":"1350184433","filename":"file5"},{"photo_id":"1350184409","filename":"file2"},{"photo_id":"1350184419","filename":"file4"},{"photo_id":"1350184406","filename":"file1"},{"photo_id":"1350184402","filename":"file0"},{"photo_id":"1350184416","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350184433":["hashtag1","hashtag2"]},{"1350184406":["hashtag1","hashtag2"]},{"1350184409":["hashtag1","hashtag2"]},{"1350184402":["hashtag1","hashtag2"]},{"1350184419":["hashtag1","hashtag2"]},{"1350184416":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350184433, 1350184406, 1350184409, 1350184402, 1350184419, 1350184416)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 45.681843280792236 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 20:53:32.022150
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/20/53/image_06042025_20_53_44_9644.jpg', 2), ('/home/nano/Desktop/images/06042025/20/53/image_06042025_20_53_23_9641.jpg', 2), ('/home/nano/Desktop/images/06042025/20/53/image_06042025_20_53_14_9664.jpg', 2), ('/home/nano/Desktop/images/06042025/20/52/image_06042025_20_53_04_10670.jpg', 2), ('/home/nano/Desktop/images/06042025/20/52/image_06042025_20_52_53_9631.jpg', 2), ('/home/nano/Desktop/images/06042025/20/51/image_06042025_20_51_44_10651.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/20/53/image_06042025_20_53_44_9644.jpg', '/home/nano/Desktop/images/06042025/20/53/image_06042025_20_53_23_9641.jpg', '/home/nano/Desktop/images/06042025/20/53/image_06042025_20_53_14_9664.jpg', '/home/nano/Desktop/images/06042025/20/52/image_06042025_20_53_04_10670.jpg', '/home/nano/Desktop/images/06042025/20/52/image_06042025_20_52_53_9631.jpg', '/home/nano/Desktop/images/06042025/20/51/image_06042025_20_51_44_10651.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/20/53/image_06042025_20_53_44_9644.jpg
/home/nano/Desktop/images/06042025/20/53/image_06042025_20_53_23_9641.jpg
/home/nano/Desktop/images/06042025/20/53/image_06042025_20_53_14_9664.jpg
/home/nano/Desktop/images/06042025/20/52/image_06042025_20_53_04_10670.jpg
/home/nano/Desktop/images/06042025/20/52/image_06042025_20_52_53_9631.jpg
/home/nano/Desktop/images/06042025/20/51/image_06042025_20_51_44_10651.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350184445","1350184459","1350184450","1350184447","1350184443","1350184454"],"photo_ids_order":["1350184443","1350184445","1350184447","1350184450","1350184454","1350184459"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/acf97372620d989d6c73bb8213cb912a.jpg","text":"TemporaryFile(/tmp/multipartBody8340160892222197317asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965674110,"filename":"image_06042025_20_53_23_9641.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/468b18de3582d36631aa704fa29189da.jpg","text":"TemporaryFile(/tmp/multipartBody7081771250579819375asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965674110,"filename":"image_06042025_20_51_44_10651.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ad57f80e02ff49ef6ec13bd17e9a036f.jpg","text":"TemporaryFile(/tmp/multipartBody3702402077331878565asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965674110,"filename":"image_06042025_20_53_04_10670.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/83cfc08c9ec8b5a31580634d46a9d126.jpg","text":"TemporaryFile(/tmp/multipartBody539813176136917915asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965674110,"filename":"image_06042025_20_53_14_9664.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/d1f6c004eba477cc1ff8b26ba4bf7b15.jpg","text":"TemporaryFile(/tmp/multipartBody1548570018447419527asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965674110,"filename":"image_06042025_20_53_44_9644.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/1de1db99d3417ecd864624145b0786c3.jpg","text":"TemporaryFile(/tmp/multipartBody1178166695850450600asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965674110,"filename":"image_06042025_20_52_53_9631.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350184447","file1":"1350184445","file0":"1350184443","file4":"1350184454","file5":"1350184459","file3":"1350184450"},"map_files_photo_id_array":[{"photo_id":"1350184459","filename":"file5"},{"photo_id":"1350184447","filename":"file2"},{"photo_id":"1350184454","filename":"file4"},{"photo_id":"1350184445","filename":"file1"},{"photo_id":"1350184443","filename":"file0"},{"photo_id":"1350184450","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350184445":["hashtag1","hashtag2"]},{"1350184459":["hashtag1","hashtag2"]},{"1350184450":["hashtag1","hashtag2"]},{"1350184447":["hashtag1","hashtag2"]},{"1350184443":["hashtag1","hashtag2"]},{"1350184454":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350184445, 1350184459, 1350184450, 1350184447, 1350184443, 1350184454)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.52999687194824 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 20:54:32.100952
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/20/54/image_06042025_20_54_34_10658.jpg', 2), ('/home/nano/Desktop/images/06042025/20/54/image_06042025_20_54_14_9655.jpg', 2), ('/home/nano/Desktop/images/06042025/20/53/image_06042025_20_54_04_10679.jpg', 2), ('/home/nano/Desktop/images/06042025/20/53/image_06042025_20_53_53_9661.jpg', 2), ('/home/nano/Desktop/images/06042025/20/51/image_06042025_20_51_33_9640.jpg', 2), ('/home/nano/Desktop/images/06042025/20/51/image_06042025_20_51_14_10670.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/20/54/image_06042025_20_54_34_10658.jpg', '/home/nano/Desktop/images/06042025/20/54/image_06042025_20_54_14_9655.jpg', '/home/nano/Desktop/images/06042025/20/53/image_06042025_20_54_04_10679.jpg', '/home/nano/Desktop/images/06042025/20/53/image_06042025_20_53_53_9661.jpg', '/home/nano/Desktop/images/06042025/20/51/image_06042025_20_51_33_9640.jpg', '/home/nano/Desktop/images/06042025/20/51/image_06042025_20_51_14_10670.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/20/54/image_06042025_20_54_34_10658.jpg
/home/nano/Desktop/images/06042025/20/54/image_06042025_20_54_14_9655.jpg
/home/nano/Desktop/images/06042025/20/53/image_06042025_20_54_04_10679.jpg
/home/nano/Desktop/images/06042025/20/53/image_06042025_20_53_53_9661.jpg
/home/nano/Desktop/images/06042025/20/51/image_06042025_20_51_33_9640.jpg
/home/nano/Desktop/images/06042025/20/51/image_06042025_20_51_14_10670.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350184550","1350184613","1350184558","1350184546","1350184543","1350184554"],"photo_ids_order":["1350184543","1350184546","1350184550","1350184554","1350184558","1350184613"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e3965797ef7ea6a4a07ae8126f420f29.jpg","text":"TemporaryFile(/tmp/multipartBody181929505827200188asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965736506,"filename":"image_06042025_20_54_04_10679.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4c38e7e853062db81bba47b2095787a2.jpg","text":"TemporaryFile(/tmp/multipartBody8234704343472149703asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965736506,"filename":"image_06042025_20_51_14_10670.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/0f44bc9e66df0eb369ea3d866ec5fffb.jpg","text":"TemporaryFile(/tmp/multipartBody3320296013166095916asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965736506,"filename":"image_06042025_20_51_33_9640.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/d7733f79c1e006d1396d586d3a1c67a9.jpg","text":"TemporaryFile(/tmp/multipartBody3064868383208843894asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965736506,"filename":"image_06042025_20_54_14_9655.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/7565d90c2c70ad6729830c10eb58ff4d.jpg","text":"TemporaryFile(/tmp/multipartBody2119253667399709958asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965736506,"filename":"image_06042025_20_54_34_10658.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/9ebfb6dc8a5a2bad89ce965025576297.jpg","text":"TemporaryFile(/tmp/multipartBody5539699171101683671asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965736506,"filename":"image_06042025_20_53_53_9661.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350184550","file1":"1350184546","file0":"1350184543","file4":"1350184558","file5":"1350184613","file3":"1350184554"},"map_files_photo_id_array":[{"photo_id":"1350184613","filename":"file5"},{"photo_id":"1350184550","filename":"file2"},{"photo_id":"1350184558","filename":"file4"},{"photo_id":"1350184546","filename":"file1"},{"photo_id":"1350184543","filename":"file0"},{"photo_id":"1350184554","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350184550":["hashtag1","hashtag2"]},{"1350184613":["hashtag1","hashtag2"]},{"1350184558":["hashtag1","hashtag2"]},{"1350184546":["hashtag1","hashtag2"]},{"1350184543":["hashtag1","hashtag2"]},{"1350184554":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350184550, 1350184613, 1350184558, 1350184546, 1350184543, 1350184554)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 38.012036085128784 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 20:55:32.198787
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/20/55/image_06042025_20_55_44_10798.jpg', 2), ('/home/nano/Desktop/images/06042025/20/55/image_06042025_20_55_33_9790.jpg', 2), ('/home/nano/Desktop/images/06042025/20/55/image_06042025_20_55_23_9786.jpg', 2), ('/home/nano/Desktop/images/06042025/20/55/image_06042025_20_55_14_9670.jpg', 2), ('/home/nano/Desktop/images/06042025/20/54/image_06042025_20_55_04_10681.jpg', 2), ('/home/nano/Desktop/images/06042025/20/54/image_06042025_20_54_44_9646.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/20/55/image_06042025_20_55_44_10798.jpg', '/home/nano/Desktop/images/06042025/20/55/image_06042025_20_55_33_9790.jpg', '/home/nano/Desktop/images/06042025/20/55/image_06042025_20_55_23_9786.jpg', '/home/nano/Desktop/images/06042025/20/55/image_06042025_20_55_14_9670.jpg', '/home/nano/Desktop/images/06042025/20/54/image_06042025_20_55_04_10681.jpg', '/home/nano/Desktop/images/06042025/20/54/image_06042025_20_54_44_9646.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/20/55/image_06042025_20_55_44_10798.jpg
/home/nano/Desktop/images/06042025/20/55/image_06042025_20_55_33_9790.jpg
/home/nano/Desktop/images/06042025/20/55/image_06042025_20_55_23_9786.jpg
/home/nano/Desktop/images/06042025/20/55/image_06042025_20_55_14_9670.jpg
/home/nano/Desktop/images/06042025/20/54/image_06042025_20_55_04_10681.jpg
/home/nano/Desktop/images/06042025/20/54/image_06042025_20_54_44_9646.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350184693","1350184686","1350184689","1350184683","1350184691","1350184679"],"photo_ids_order":["1350184679","1350184683","1350184686","1350184689","1350184691","1350184693"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f40029ee3f3b58ea1f0ff060fab04ec1.jpg","text":"TemporaryFile(/tmp/multipartBody8340670149473038206asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965794451,"filename":"image_06042025_20_54_44_9646.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b6ad92727d56bb945d1c0ca353c7ec59.jpg","text":"TemporaryFile(/tmp/multipartBody7276275708295966840asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965794451,"filename":"image_06042025_20_55_23_9786.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/7318f1ceb1e5285b4a9927e6a4d30931.jpg","text":"TemporaryFile(/tmp/multipartBody1573284477017787830asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965794451,"filename":"image_06042025_20_55_14_9670.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ee732c3a809daf30ba4ed80b304c6b05.jpg","text":"TemporaryFile(/tmp/multipartBody6560887569987897140asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965794451,"filename":"image_06042025_20_55_33_9790.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/0cb6ee0f880296f96c0b622378cd2292.jpg","text":"TemporaryFile(/tmp/multipartBody1971247055424564044asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965794451,"filename":"image_06042025_20_55_04_10681.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/47528d286cac156240d1712f16560ac3.jpg","text":"TemporaryFile(/tmp/multipartBody6102923351253185337asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965794451,"filename":"image_06042025_20_55_44_10798.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350184686","file1":"1350184683","file0":"1350184679","file4":"1350184691","file5":"1350184693","file3":"1350184689"},"map_files_photo_id_array":[{"photo_id":"1350184693","filename":"file5"},{"photo_id":"1350184686","filename":"file2"},{"photo_id":"1350184691","filename":"file4"},{"photo_id":"1350184683","filename":"file1"},{"photo_id":"1350184679","filename":"file0"},{"photo_id":"1350184689","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350184693":["hashtag1","hashtag2"]},{"1350184686":["hashtag1","hashtag2"]},{"1350184689":["hashtag1","hashtag2"]},{"1350184683":["hashtag1","hashtag2"]},{"1350184691":["hashtag1","hashtag2"]},{"1350184679":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350184693, 1350184686, 1350184689, 1350184683, 1350184691, 1350184679)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.572248697280884 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 20:56:32.308351
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/20/56/image_06042025_20_56_34_9651.jpg', 2), ('/home/nano/Desktop/images/06042025/20/56/image_06042025_20_56_24_10665.jpg', 2), ('/home/nano/Desktop/images/06042025/20/56/image_06042025_20_56_13_9646.jpg', 2), ('/home/nano/Desktop/images/06042025/20/55/image_06042025_20_56_04_9797.jpg', 2), ('/home/nano/Desktop/images/06042025/20/55/image_06042025_20_55_54_9790.jpg', 2), ('/home/nano/Desktop/images/06042025/20/50/image_06042025_20_51_03_9640.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/20/56/image_06042025_20_56_34_9651.jpg', '/home/nano/Desktop/images/06042025/20/56/image_06042025_20_56_24_10665.jpg', '/home/nano/Desktop/images/06042025/20/56/image_06042025_20_56_13_9646.jpg', '/home/nano/Desktop/images/06042025/20/55/image_06042025_20_56_04_9797.jpg', '/home/nano/Desktop/images/06042025/20/55/image_06042025_20_55_54_9790.jpg', '/home/nano/Desktop/images/06042025/20/50/image_06042025_20_51_03_9640.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/20/56/image_06042025_20_56_34_9651.jpg
/home/nano/Desktop/images/06042025/20/56/image_06042025_20_56_24_10665.jpg
/home/nano/Desktop/images/06042025/20/56/image_06042025_20_56_13_9646.jpg
/home/nano/Desktop/images/06042025/20/55/image_06042025_20_56_04_9797.jpg
/home/nano/Desktop/images/06042025/20/55/image_06042025_20_55_54_9790.jpg
/home/nano/Desktop/images/06042025/20/50/image_06042025_20_51_03_9640.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350184715","1350184726","1350184720","1350184722","1350184710","1350184713"],"photo_ids_order":["1350184710","1350184713","1350184715","1350184720","1350184722","1350184726"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/60030f944a2bd460627dc9f11559856b.jpg","text":"TemporaryFile(/tmp/multipartBody7087640789731024030asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965853797,"filename":"image_06042025_20_56_13_9646.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/8e8cd8260024e8b92c33649a78df6753.jpg","text":"TemporaryFile(/tmp/multipartBody5546147316350229734asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965853797,"filename":"image_06042025_20_51_03_9640.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/8d9522ffc7d2f39a47486f23f3269564.jpg","text":"TemporaryFile(/tmp/multipartBody7462106910936624481asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965853797,"filename":"image_06042025_20_56_04_9797.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/5e7ea059ec5cb134a56036471cbc85b8.jpg","text":"TemporaryFile(/tmp/multipartBody3610408416724324110asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965853797,"filename":"image_06042025_20_55_54_9790.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4459a5606be5e0ea44c1b43a901930c2.jpg","text":"TemporaryFile(/tmp/multipartBody7621225941435322665asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965853797,"filename":"image_06042025_20_56_34_9651.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/d0fd75f25f6b86f86e6ab92657b34f14.jpg","text":"TemporaryFile(/tmp/multipartBody8204480631151436535asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743965853797,"filename":"image_06042025_20_56_24_10665.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350184715","file1":"1350184713","file0":"1350184710","file4":"1350184722","file5":"1350184726","file3":"1350184720"},"map_files_photo_id_array":[{"photo_id":"1350184726","filename":"file5"},{"photo_id":"1350184715","filename":"file2"},{"photo_id":"1350184722","filename":"file4"},{"photo_id":"1350184713","filename":"file1"},{"photo_id":"1350184710","filename":"file0"},{"photo_id":"1350184720","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350184715":["hashtag1","hashtag2"]},{"1350184726":["hashtag1","hashtag2"]},{"1350184720":["hashtag1","hashtag2"]},{"1350184722":["hashtag1","hashtag2"]},{"1350184710":["hashtag1","hashtag2"]},{"1350184713":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350184715, 1350184726, 1350184720, 1350184722, 1350184710, 1350184713)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.336379289627075 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 20:57:32.397708
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/20/57/image_06042025_20_57_43_9634.jpg', 2), ('/home/nano/Desktop/images/06042025/20/57/image_06042025_20_57_34_9652.jpg', 2), ('/home/nano/Desktop/images/06042025/20/57/image_06042025_20_57_24_10644.jpg', 2), ('/home/nano/Desktop/images/06042025/20/57/image_06042025_20_57_13_9672.jpg', 2), ('/home/nano/Desktop/images/06042025/20/56/image_06042025_20_57_04_9678.jpg', 2), ('/home/nano/Desktop/images/06042025/20/56/image_06042025_20_56_54_10658.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/20/57/image_06042025_20_57_43_9634.jpg', '/home/nano/Desktop/images/06042025/20/57/image_06042025_20_57_34_9652.jpg', '/home/nano/Desktop/images/06042025/20/57/image_06042025_20_57_24_10644.jpg', '/home/nano/Desktop/images/06042025/20/57/image_06042025_20_57_13_9672.jpg', '/home/nano/Desktop/images/06042025/20/56/image_06042025_20_57_04_9678.jpg', '/home/nano/Desktop/images/06042025/20/56/image_06042025_20_56_54_10658.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/20/57/image_06042025_20_57_43_9634.jpg
/home/nano/Desktop/images/06042025/20/57/image_06042025_20_57_34_9652.jpg
/home/nano/Desktop/images/06042025/20/57/image_06042025_20_57_24_10644.jpg
/home/nano/Desktop/images/06042025/20/57/image_06042025_20_57_13_9672.jpg
/home/nano/Desktop/images/06042025/20/56/image_06042025_20_57_04_9678.jpg
/home/nano/Desktop/images/06042025/20/56/image_06042025_20_56_54_10658.jpg
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 20:59:03.498042
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/20/57/image_06042025_20_57_43_9634.jpg', 2), ('/home/nano/Desktop/images/06042025/20/57/image_06042025_20_57_34_9652.jpg', 2), ('/home/nano/Desktop/images/06042025/20/57/image_06042025_20_57_24_10644.jpg', 2), ('/home/nano/Desktop/images/06042025/20/57/image_06042025_20_57_13_9672.jpg', 2), ('/home/nano/Desktop/images/06042025/20/56/image_06042025_20_57_04_9678.jpg', 2), ('/home/nano/Desktop/images/06042025/20/56/image_06042025_20_56_54_10658.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/20/57/image_06042025_20_57_43_9634.jpg', '/home/nano/Desktop/images/06042025/20/57/image_06042025_20_57_34_9652.jpg', '/home/nano/Desktop/images/06042025/20/57/image_06042025_20_57_24_10644.jpg', '/home/nano/Desktop/images/06042025/20/57/image_06042025_20_57_13_9672.jpg', '/home/nano/Desktop/images/06042025/20/56/image_06042025_20_57_04_9678.jpg', '/home/nano/Desktop/images/06042025/20/56/image_06042025_20_56_54_10658.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/20/57/image_06042025_20_57_43_9634.jpg
/home/nano/Desktop/images/06042025/20/57/image_06042025_20_57_34_9652.jpg
/home/nano/Desktop/images/06042025/20/57/image_06042025_20_57_24_10644.jpg
/home/nano/Desktop/images/06042025/20/57/image_06042025_20_57_13_9672.jpg
/home/nano/Desktop/images/06042025/20/56/image_06042025_20_57_04_9678.jpg
/home/nano/Desktop/images/06042025/20/56/image_06042025_20_56_54_10658.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350184853","1350184832","1350184848","1350184830","1350184859","1350184838"],"photo_ids_order":["1350184830","1350184832","1350184838","1350184848","1350184853","1350184859"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/6569332988fbe376ea6ac455cb5eafc3.jpg","text":"TemporaryFile(/tmp/multipartBody4575612220536462236asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966004978,"filename":"image_06042025_20_57_04_9678.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c46d9dec88d84aea1364f385ad565598.jpg","text":"TemporaryFile(/tmp/multipartBody101442633449593695asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966004978,"filename":"image_06042025_20_57_34_9652.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/442ebea925f78214d18298bee43f4c95.jpg","text":"TemporaryFile(/tmp/multipartBody6417076726323278543asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966004978,"filename":"image_06042025_20_57_13_9672.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/d7121564408a0f879ff2836849a54d9a.jpg","text":"TemporaryFile(/tmp/multipartBody6735524671978857527asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966004978,"filename":"image_06042025_20_57_43_9634.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/30826eaaf72acd98b75d4a71886b299d.jpg","text":"TemporaryFile(/tmp/multipartBody1045291678227978606asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966004978,"filename":"image_06042025_20_56_54_10658.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/2670b1e3c6f821a56a2f8f6bf0f8616a.jpg","text":"TemporaryFile(/tmp/multipartBody7953964135413371936asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966004978,"filename":"image_06042025_20_57_24_10644.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350184838","file1":"1350184832","file0":"1350184830","file4":"1350184853","file5":"1350184859","file3":"1350184848"},"map_files_photo_id_array":[{"photo_id":"1350184859","filename":"file5"},{"photo_id":"1350184838","filename":"file2"},{"photo_id":"1350184853","filename":"file4"},{"photo_id":"1350184832","filename":"file1"},{"photo_id":"1350184830","filename":"file0"},{"photo_id":"1350184848","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350184853":["hashtag1","hashtag2"]},{"1350184832":["hashtag1","hashtag2"]},{"1350184848":["hashtag1","hashtag2"]},{"1350184830":["hashtag1","hashtag2"]},{"1350184859":["hashtag1","hashtag2"]},{"1350184838":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350184853, 1350184832, 1350184848, 1350184830, 1350184859, 1350184838)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.43253231048584 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 21:00:02.952173
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/20/59/image_06042025_20_59_43_9636.jpg', 2), ('/home/nano/Desktop/images/06042025/20/59/image_06042025_20_59_24_10646.jpg', 2), ('/home/nano/Desktop/images/06042025/20/59/image_06042025_20_59_13_9784.jpg', 2), ('/home/nano/Desktop/images/06042025/20/58/image_06042025_20_59_03_9642.jpg', 2), ('/home/nano/Desktop/images/06042025/20/58/image_06042025_20_58_54_9698.jpg', 2), ('/home/nano/Desktop/images/06042025/20/58/image_06042025_20_58_44_10670.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/20/59/image_06042025_20_59_43_9636.jpg', '/home/nano/Desktop/images/06042025/20/59/image_06042025_20_59_24_10646.jpg', '/home/nano/Desktop/images/06042025/20/59/image_06042025_20_59_13_9784.jpg', '/home/nano/Desktop/images/06042025/20/58/image_06042025_20_59_03_9642.jpg', '/home/nano/Desktop/images/06042025/20/58/image_06042025_20_58_54_9698.jpg', '/home/nano/Desktop/images/06042025/20/58/image_06042025_20_58_44_10670.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/20/59/image_06042025_20_59_43_9636.jpg
/home/nano/Desktop/images/06042025/20/59/image_06042025_20_59_24_10646.jpg
/home/nano/Desktop/images/06042025/20/59/image_06042025_20_59_13_9784.jpg
/home/nano/Desktop/images/06042025/20/58/image_06042025_20_59_03_9642.jpg
/home/nano/Desktop/images/06042025/20/58/image_06042025_20_58_54_9698.jpg
/home/nano/Desktop/images/06042025/20/58/image_06042025_20_58_44_10670.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350184873","1350184882","1350184893","1350184869","1350184877","1350184886"],"photo_ids_order":["1350184869","1350184873","1350184877","1350184882","1350184886","1350184893"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/dea35f3ddbb45da2f241ec3e4c20759a.jpg","text":"TemporaryFile(/tmp/multipartBody4178061145638908646asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966064886,"filename":"image_06042025_20_59_24_10646.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/3d7eab6863128c277dd42be126298f86.jpg","text":"TemporaryFile(/tmp/multipartBody7649034851483972889asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966064886,"filename":"image_06042025_20_59_03_9642.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c5c48be9293993bc5f23d18f1b6f57b1.jpg","text":"TemporaryFile(/tmp/multipartBody258053501556497745asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966064886,"filename":"image_06042025_20_58_44_10670.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/df6b0488ec9ae16764605b9b1fbeae8f.jpg","text":"TemporaryFile(/tmp/multipartBody867445377981544707asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966064886,"filename":"image_06042025_20_59_43_9636.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/d4452379e6f0795fafea84a9ad386c50.jpg","text":"TemporaryFile(/tmp/multipartBody4995870822379940732asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966064886,"filename":"image_06042025_20_59_13_9784.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/be00f7b39a82a2a94a31967e9e411439.jpg","text":"TemporaryFile(/tmp/multipartBody2671720433016865800asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966064886,"filename":"image_06042025_20_58_54_9698.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350184877","file1":"1350184873","file0":"1350184869","file4":"1350184886","file5":"1350184893","file3":"1350184882"},"map_files_photo_id_array":[{"photo_id":"1350184893","filename":"file5"},{"photo_id":"1350184877","filename":"file2"},{"photo_id":"1350184886","filename":"file4"},{"photo_id":"1350184873","filename":"file1"},{"photo_id":"1350184869","filename":"file0"},{"photo_id":"1350184882","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350184873":["hashtag1","hashtag2"]},{"1350184882":["hashtag1","hashtag2"]},{"1350184893":["hashtag1","hashtag2"]},{"1350184869":["hashtag1","hashtag2"]},{"1350184877":["hashtag1","hashtag2"]},{"1350184886":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350184873, 1350184882, 1350184893, 1350184869, 1350184877, 1350184886)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 36.37956762313843 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 21:01:03.484719
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/21/00/image_06042025_21_00_44_10650.jpg', 2), ('/home/nano/Desktop/images/06042025/21/00/image_06042025_21_00_33_9657.jpg', 2), ('/home/nano/Desktop/images/06042025/21/00/image_06042025_21_00_24_9637.jpg', 2), ('/home/nano/Desktop/images/06042025/21/00/image_06042025_21_00_14_10654.jpg', 2), ('/home/nano/Desktop/images/06042025/20/59/image_06042025_21_00_03_9661.jpg', 2), ('/home/nano/Desktop/images/06042025/20/59/image_06042025_20_59_54_10645.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/21/00/image_06042025_21_00_44_10650.jpg', '/home/nano/Desktop/images/06042025/21/00/image_06042025_21_00_33_9657.jpg', '/home/nano/Desktop/images/06042025/21/00/image_06042025_21_00_24_9637.jpg', '/home/nano/Desktop/images/06042025/21/00/image_06042025_21_00_14_10654.jpg', '/home/nano/Desktop/images/06042025/20/59/image_06042025_21_00_03_9661.jpg', '/home/nano/Desktop/images/06042025/20/59/image_06042025_20_59_54_10645.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/21/00/image_06042025_21_00_44_10650.jpg
/home/nano/Desktop/images/06042025/21/00/image_06042025_21_00_33_9657.jpg
/home/nano/Desktop/images/06042025/21/00/image_06042025_21_00_24_9637.jpg
/home/nano/Desktop/images/06042025/21/00/image_06042025_21_00_14_10654.jpg
/home/nano/Desktop/images/06042025/20/59/image_06042025_21_00_03_9661.jpg
/home/nano/Desktop/images/06042025/20/59/image_06042025_20_59_54_10645.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350184952","1350184928","1350184948","1350184932","1350184956","1350184943"],"photo_ids_order":["1350184928","1350184932","1350184943","1350184948","1350184952","1350184956"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e60ac7d70f0f3cf15ee19d13c5e0b40b.jpg","text":"TemporaryFile(/tmp/multipartBody8893544095304873720asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966124872,"filename":"image_06042025_21_00_03_9661.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/41b94e74573b1fffa4898c7258c17a71.jpg","text":"TemporaryFile(/tmp/multipartBody6836950683376004257asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966124872,"filename":"image_06042025_21_00_44_10650.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/0a85c0de1cba256c7d8cbf540412306a.jpg","text":"TemporaryFile(/tmp/multipartBody3143350952847589854asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966124872,"filename":"image_06042025_21_00_14_10654.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ecced96bd2d82c8772dbfebfe978fb7b.jpg","text":"TemporaryFile(/tmp/multipartBody4301305853528044226asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966124872,"filename":"image_06042025_21_00_33_9657.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/6e5bc833bad4bbd624bc36f970ea318e.jpg","text":"TemporaryFile(/tmp/multipartBody2058879518942418026asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966124872,"filename":"image_06042025_20_59_54_10645.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/9cca3f47da34ed6d8eb941519811e131.jpg","text":"TemporaryFile(/tmp/multipartBody706793703723803986asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966124872,"filename":"image_06042025_21_00_24_9637.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350184943","file1":"1350184932","file0":"1350184928","file4":"1350184952","file5":"1350184956","file3":"1350184948"},"map_files_photo_id_array":[{"photo_id":"1350184956","filename":"file5"},{"photo_id":"1350184943","filename":"file2"},{"photo_id":"1350184952","filename":"file4"},{"photo_id":"1350184932","filename":"file1"},{"photo_id":"1350184928","filename":"file0"},{"photo_id":"1350184948","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350184952":["hashtag1","hashtag2"]},{"1350184928":["hashtag1","hashtag2"]},{"1350184948":["hashtag1","hashtag2"]},{"1350184932":["hashtag1","hashtag2"]},{"1350184956":["hashtag1","hashtag2"]},{"1350184943":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350184952, 1350184928, 1350184948, 1350184932, 1350184956, 1350184943)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.404672384262085 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 21:02:02.435156
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/21/01/image_06042025_21_01_43_9641.jpg', 2), ('/home/nano/Desktop/images/06042025/21/01/image_06042025_21_01_34_9766.jpg', 2), ('/home/nano/Desktop/images/06042025/21/01/image_06042025_21_01_24_9767.jpg', 2), ('/home/nano/Desktop/images/06042025/21/01/image_06042025_21_01_14_10670.jpg', 2), ('/home/nano/Desktop/images/06042025/21/00/image_06042025_21_00_54_9642.jpg', 2), ('/home/nano/Desktop/images/06042025/20/58/image_06042025_20_58_33_9646.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/21/01/image_06042025_21_01_43_9641.jpg', '/home/nano/Desktop/images/06042025/21/01/image_06042025_21_01_34_9766.jpg', '/home/nano/Desktop/images/06042025/21/01/image_06042025_21_01_24_9767.jpg', '/home/nano/Desktop/images/06042025/21/01/image_06042025_21_01_14_10670.jpg', '/home/nano/Desktop/images/06042025/21/00/image_06042025_21_00_54_9642.jpg', '/home/nano/Desktop/images/06042025/20/58/image_06042025_20_58_33_9646.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/21/01/image_06042025_21_01_43_9641.jpg
/home/nano/Desktop/images/06042025/21/01/image_06042025_21_01_34_9766.jpg
/home/nano/Desktop/images/06042025/21/01/image_06042025_21_01_24_9767.jpg
/home/nano/Desktop/images/06042025/21/01/image_06042025_21_01_14_10670.jpg
/home/nano/Desktop/images/06042025/21/00/image_06042025_21_00_54_9642.jpg
/home/nano/Desktop/images/06042025/20/58/image_06042025_20_58_33_9646.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350185023","1350185026","1350185031","1350185034","1350185028","1350185019"],"photo_ids_order":["1350185019","1350185023","1350185026","1350185028","1350185031","1350185034"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f16fde47b70343616a8b7fb5723ceabc.jpg","text":"TemporaryFile(/tmp/multipartBody5246867108299495896asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966183984,"filename":"image_06042025_21_01_34_9766.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/085493efc6a73be7a40a2bb52a2050e7.jpg","text":"TemporaryFile(/tmp/multipartBody3106423723408707960asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966183984,"filename":"image_06042025_21_01_24_9767.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/01c4ad04671bb9f5a05bbfc5a4e792fe.jpg","text":"TemporaryFile(/tmp/multipartBody2950098377919479866asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966183984,"filename":"image_06042025_21_00_54_9642.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/89dff7924e19b382d3a79f78b0898ade.jpg","text":"TemporaryFile(/tmp/multipartBody5080175458785585790asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966183984,"filename":"image_06042025_20_58_33_9646.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/703f18a861dac9d9a2294e9464789821.jpg","text":"TemporaryFile(/tmp/multipartBody6967328361293230893asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966183984,"filename":"image_06042025_21_01_14_10670.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/62908eff3f6429471221c1fc2c8946e6.jpg","text":"TemporaryFile(/tmp/multipartBody3551919293468175701asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966183984,"filename":"image_06042025_21_01_43_9641.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350185026","file1":"1350185023","file0":"1350185019","file4":"1350185031","file5":"1350185034","file3":"1350185028"},"map_files_photo_id_array":[{"photo_id":"1350185034","filename":"file5"},{"photo_id":"1350185026","filename":"file2"},{"photo_id":"1350185031","filename":"file4"},{"photo_id":"1350185023","filename":"file1"},{"photo_id":"1350185019","filename":"file0"},{"photo_id":"1350185028","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350185023":["hashtag1","hashtag2"]},{"1350185026":["hashtag1","hashtag2"]},{"1350185031":["hashtag1","hashtag2"]},{"1350185034":["hashtag1","hashtag2"]},{"1350185028":["hashtag1","hashtag2"]},{"1350185019":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350185023, 1350185026, 1350185031, 1350185034, 1350185028, 1350185019)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.51284098625183 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 21:03:02.557564
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/21/02/image_06042025_21_02_43_9640.jpg', 2), ('/home/nano/Desktop/images/06042025/21/02/image_06042025_21_02_34_9668.jpg', 2), ('/home/nano/Desktop/images/06042025/21/02/image_06042025_21_02_24_10802.jpg', 2), ('/home/nano/Desktop/images/06042025/21/02/image_06042025_21_02_13_9811.jpg', 2), ('/home/nano/Desktop/images/06042025/21/01/image_06042025_21_02_03_9643.jpg', 2), ('/home/nano/Desktop/images/06042025/21/01/image_06042025_21_01_54_10643.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/21/02/image_06042025_21_02_43_9640.jpg', '/home/nano/Desktop/images/06042025/21/02/image_06042025_21_02_34_9668.jpg', '/home/nano/Desktop/images/06042025/21/02/image_06042025_21_02_24_10802.jpg', '/home/nano/Desktop/images/06042025/21/02/image_06042025_21_02_13_9811.jpg', '/home/nano/Desktop/images/06042025/21/01/image_06042025_21_02_03_9643.jpg', '/home/nano/Desktop/images/06042025/21/01/image_06042025_21_01_54_10643.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/21/02/image_06042025_21_02_43_9640.jpg
/home/nano/Desktop/images/06042025/21/02/image_06042025_21_02_34_9668.jpg
/home/nano/Desktop/images/06042025/21/02/image_06042025_21_02_24_10802.jpg
/home/nano/Desktop/images/06042025/21/02/image_06042025_21_02_13_9811.jpg
/home/nano/Desktop/images/06042025/21/01/image_06042025_21_02_03_9643.jpg
/home/nano/Desktop/images/06042025/21/01/image_06042025_21_01_54_10643.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350185101","1350185094","1350185097","1350185090","1350185081","1350185105"],"photo_ids_order":["1350185081","1350185090","1350185094","1350185097","1350185101","1350185105"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/1e82db48f661269401f1a4cb32bd8a1a.jpg","text":"TemporaryFile(/tmp/multipartBody2378756304978211147asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966244187,"filename":"image_06042025_21_02_03_9643.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/aa1b6b29235c6e8ff73cec620514ac67.jpg","text":"TemporaryFile(/tmp/multipartBody13037875091103653asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966244187,"filename":"image_06042025_21_02_24_10802.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/dbf374d991654a7d4e06e8a9e72449b2.jpg","text":"TemporaryFile(/tmp/multipartBody7162704521580552818asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966244187,"filename":"image_06042025_21_02_13_9811.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/525b19d0441b3635e6493cc81526e0d1.jpg","text":"TemporaryFile(/tmp/multipartBody5820333962196770993asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966244187,"filename":"image_06042025_21_02_34_9668.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/1ffcf1da45138e6dc115b8acf88444e2.jpg","text":"TemporaryFile(/tmp/multipartBody6131725062245912335asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966244187,"filename":"image_06042025_21_02_43_9640.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/fbdb41bf4e0b0dc6785ab208cd0f2f32.jpg","text":"TemporaryFile(/tmp/multipartBody3290527376724548756asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966244187,"filename":"image_06042025_21_01_54_10643.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350185094","file1":"1350185090","file0":"1350185081","file4":"1350185101","file5":"1350185105","file3":"1350185097"},"map_files_photo_id_array":[{"photo_id":"1350185105","filename":"file5"},{"photo_id":"1350185094","filename":"file2"},{"photo_id":"1350185101","filename":"file4"},{"photo_id":"1350185090","filename":"file1"},{"photo_id":"1350185081","filename":"file0"},{"photo_id":"1350185097","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350185101":["hashtag1","hashtag2"]},{"1350185094":["hashtag1","hashtag2"]},{"1350185097":["hashtag1","hashtag2"]},{"1350185090":["hashtag1","hashtag2"]},{"1350185081":["hashtag1","hashtag2"]},{"1350185105":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350185101, 1350185094, 1350185097, 1350185090, 1350185081, 1350185105)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.728986501693726 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 21:04:02.783371
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/21/03/image_06042025_21_03_43_9639.jpg', 2), ('/home/nano/Desktop/images/06042025/21/03/image_06042025_21_03_34_9644.jpg', 2), ('/home/nano/Desktop/images/06042025/21/03/image_06042025_21_03_24_10649.jpg', 2), ('/home/nano/Desktop/images/06042025/21/03/image_06042025_21_03_13_9684.jpg', 2), ('/home/nano/Desktop/images/06042025/21/02/image_06042025_21_03_04_9645.jpg', 2), ('/home/nano/Desktop/images/06042025/21/02/image_06042025_21_02_54_10649.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/21/03/image_06042025_21_03_43_9639.jpg', '/home/nano/Desktop/images/06042025/21/03/image_06042025_21_03_34_9644.jpg', '/home/nano/Desktop/images/06042025/21/03/image_06042025_21_03_24_10649.jpg', '/home/nano/Desktop/images/06042025/21/03/image_06042025_21_03_13_9684.jpg', '/home/nano/Desktop/images/06042025/21/02/image_06042025_21_03_04_9645.jpg', '/home/nano/Desktop/images/06042025/21/02/image_06042025_21_02_54_10649.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/21/03/image_06042025_21_03_43_9639.jpg
/home/nano/Desktop/images/06042025/21/03/image_06042025_21_03_34_9644.jpg
/home/nano/Desktop/images/06042025/21/03/image_06042025_21_03_24_10649.jpg
/home/nano/Desktop/images/06042025/21/03/image_06042025_21_03_13_9684.jpg
/home/nano/Desktop/images/06042025/21/02/image_06042025_21_03_04_9645.jpg
/home/nano/Desktop/images/06042025/21/02/image_06042025_21_02_54_10649.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350185182","1350185167","1350185178","1350185186","1350185162","1350185165"],"photo_ids_order":["1350185162","1350185165","1350185167","1350185178","1350185182","1350185186"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4cb2292ce2d70fe96bd037a901023cd0.jpg","text":"TemporaryFile(/tmp/multipartBody4539459535011733462asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966304463,"filename":"image_06042025_21_03_04_9645.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/9483871c4ef208a3aa8f42381a2adf66.jpg","text":"TemporaryFile(/tmp/multipartBody7966786874256843721asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966304463,"filename":"image_06042025_21_03_24_10649.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/13a5402d3dc571fc2a9167b8b322a101.jpg","text":"TemporaryFile(/tmp/multipartBody2165184280656537399asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966304463,"filename":"image_06042025_21_03_13_9684.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e4772c42319a1dd68d48e784853489c3.jpg","text":"TemporaryFile(/tmp/multipartBody8426935456974999570asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966304463,"filename":"image_06042025_21_02_54_10649.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/435fcab875fc0d4851c2fd5ce3f007f3.jpg","text":"TemporaryFile(/tmp/multipartBody4083427770997121910asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966304463,"filename":"image_06042025_21_03_43_9639.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/8667a25be3d1a9694c9f26619d7510e9.jpg","text":"TemporaryFile(/tmp/multipartBody6137998016176124554asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966304463,"filename":"image_06042025_21_03_34_9644.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350185167","file1":"1350185165","file0":"1350185162","file4":"1350185182","file5":"1350185186","file3":"1350185178"},"map_files_photo_id_array":[{"photo_id":"1350185186","filename":"file5"},{"photo_id":"1350185167","filename":"file2"},{"photo_id":"1350185182","filename":"file4"},{"photo_id":"1350185165","filename":"file1"},{"photo_id":"1350185162","filename":"file0"},{"photo_id":"1350185178","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350185182":["hashtag1","hashtag2"]},{"1350185167":["hashtag1","hashtag2"]},{"1350185178":["hashtag1","hashtag2"]},{"1350185186":["hashtag1","hashtag2"]},{"1350185162":["hashtag1","hashtag2"]},{"1350185165":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350185182, 1350185167, 1350185178, 1350185186, 1350185162, 1350185165)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.8861026763916 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 21:05:02.761436
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/21/04/image_06042025_21_04_34_9642.jpg', 2), ('/home/nano/Desktop/images/06042025/21/04/image_06042025_21_04_13_9660.jpg', 2), ('/home/nano/Desktop/images/06042025/21/03/image_06042025_21_04_04_9644.jpg', 2), ('/home/nano/Desktop/images/06042025/21/03/image_06042025_21_03_54_10672.jpg', 2), ('/home/nano/Desktop/images/06042025/20/58/image_06042025_20_58_24_9659.jpg', 2), ('/home/nano/Desktop/images/06042025/20/58/image_06042025_20_58_14_10672.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/21/04/image_06042025_21_04_34_9642.jpg', '/home/nano/Desktop/images/06042025/21/04/image_06042025_21_04_13_9660.jpg', '/home/nano/Desktop/images/06042025/21/03/image_06042025_21_04_04_9644.jpg', '/home/nano/Desktop/images/06042025/21/03/image_06042025_21_03_54_10672.jpg', '/home/nano/Desktop/images/06042025/20/58/image_06042025_20_58_24_9659.jpg', '/home/nano/Desktop/images/06042025/20/58/image_06042025_20_58_14_10672.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/21/04/image_06042025_21_04_34_9642.jpg
/home/nano/Desktop/images/06042025/21/04/image_06042025_21_04_13_9660.jpg
/home/nano/Desktop/images/06042025/21/03/image_06042025_21_04_04_9644.jpg
/home/nano/Desktop/images/06042025/21/03/image_06042025_21_03_54_10672.jpg
/home/nano/Desktop/images/06042025/20/58/image_06042025_20_58_24_9659.jpg
/home/nano/Desktop/images/06042025/20/58/image_06042025_20_58_14_10672.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350185245","1350185248","1350185261","1350185240","1350185243","1350185237"],"photo_ids_order":["1350185237","1350185240","1350185243","1350185245","1350185248","1350185261"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/7ba1fde83221639970402d60900bb6c0.jpg","text":"TemporaryFile(/tmp/multipartBody2659003354026444882asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966364185,"filename":"image_06042025_21_03_54_10672.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/0b1dc284622bf70398ff0b17376fe3d6.jpg","text":"TemporaryFile(/tmp/multipartBody7739209470642426637asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966364185,"filename":"image_06042025_20_58_24_9659.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/eb0fc03b5bfed5b2f304916ed742f56d.jpg","text":"TemporaryFile(/tmp/multipartBody7969133811151369176asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966364185,"filename":"image_06042025_20_58_14_10672.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/9f664ff069b87bb8abbaaf2d3d92be00.jpg","text":"TemporaryFile(/tmp/multipartBody6337043692522586881asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966364185,"filename":"image_06042025_21_04_13_9660.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4ccc8492378510b5901b51f69e4afbf2.jpg","text":"TemporaryFile(/tmp/multipartBody1863637819311087357asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966364185,"filename":"image_06042025_21_04_04_9644.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b06c1456284e9d0b0704b0a9bbe71130.jpg","text":"TemporaryFile(/tmp/multipartBody6947575229684218213asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966364185,"filename":"image_06042025_21_04_34_9642.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350185243","file1":"1350185240","file0":"1350185237","file4":"1350185248","file5":"1350185261","file3":"1350185245"},"map_files_photo_id_array":[{"photo_id":"1350185261","filename":"file5"},{"photo_id":"1350185243","filename":"file2"},{"photo_id":"1350185248","filename":"file4"},{"photo_id":"1350185240","filename":"file1"},{"photo_id":"1350185237","filename":"file0"},{"photo_id":"1350185245","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350185245":["hashtag1","hashtag2"]},{"1350185248":["hashtag1","hashtag2"]},{"1350185261":["hashtag1","hashtag2"]},{"1350185240":["hashtag1","hashtag2"]},{"1350185243":["hashtag1","hashtag2"]},{"1350185237":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350185245, 1350185248, 1350185261, 1350185240, 1350185243, 1350185237)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.43998384475708 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 21:06:02.646794
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/21/05/image_06042025_21_05_43_9650.jpg', 2), ('/home/nano/Desktop/images/06042025/21/05/image_06042025_21_05_34_9649.jpg', 2), ('/home/nano/Desktop/images/06042025/21/05/image_06042025_21_05_13_9665.jpg', 2), ('/home/nano/Desktop/images/06042025/21/04/image_06042025_21_04_43_9647.jpg', 2), ('/home/nano/Desktop/images/06042025/20/57/image_06042025_20_58_03_9646.jpg', 2), ('/home/nano/Desktop/images/06042025/20/57/image_06042025_20_57_54_10664.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/21/05/image_06042025_21_05_43_9650.jpg', '/home/nano/Desktop/images/06042025/21/05/image_06042025_21_05_34_9649.jpg', '/home/nano/Desktop/images/06042025/21/05/image_06042025_21_05_13_9665.jpg', '/home/nano/Desktop/images/06042025/21/04/image_06042025_21_04_43_9647.jpg', '/home/nano/Desktop/images/06042025/20/57/image_06042025_20_58_03_9646.jpg', '/home/nano/Desktop/images/06042025/20/57/image_06042025_20_57_54_10664.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/21/05/image_06042025_21_05_43_9650.jpg
/home/nano/Desktop/images/06042025/21/05/image_06042025_21_05_34_9649.jpg
/home/nano/Desktop/images/06042025/21/05/image_06042025_21_05_13_9665.jpg
/home/nano/Desktop/images/06042025/21/04/image_06042025_21_04_43_9647.jpg
/home/nano/Desktop/images/06042025/20/57/image_06042025_20_58_03_9646.jpg
/home/nano/Desktop/images/06042025/20/57/image_06042025_20_57_54_10664.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350185312","1350185314","1350185317","1350185302","1350185305","1350185315"],"photo_ids_order":["1350185302","1350185305","1350185312","1350185314","1350185315","1350185317"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b0cc48e3ead0c75baca9b558845fb626.jpg","text":"TemporaryFile(/tmp/multipartBody4207070423493580814asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966424120,"filename":"image_06042025_21_05_13_9665.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/1cf2869b2454dac4d4c7cf5ae838e614.jpg","text":"TemporaryFile(/tmp/multipartBody2851603415908105469asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966424120,"filename":"image_06042025_21_04_43_9647.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/31ba655c8ce2ba9f818aaf8471db7925.jpg","text":"TemporaryFile(/tmp/multipartBody7769115135332390762asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966424120,"filename":"image_06042025_20_57_54_10664.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/cd56ae6ebad8bfd3d19d187f37f1bedb.jpg","text":"TemporaryFile(/tmp/multipartBody8819958694235703130asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966424120,"filename":"image_06042025_21_05_43_9650.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/bb3b1c349fcd1e0a7bee750802de905d.jpg","text":"TemporaryFile(/tmp/multipartBody3342092973571779054asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966424120,"filename":"image_06042025_21_05_34_9649.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/215a371b8387889758f7f482fedbf3ed.jpg","text":"TemporaryFile(/tmp/multipartBody171196520511803514asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966424120,"filename":"image_06042025_20_58_03_9646.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350185312","file1":"1350185305","file0":"1350185302","file4":"1350185315","file5":"1350185317","file3":"1350185314"},"map_files_photo_id_array":[{"photo_id":"1350185317","filename":"file5"},{"photo_id":"1350185312","filename":"file2"},{"photo_id":"1350185315","filename":"file4"},{"photo_id":"1350185305","filename":"file1"},{"photo_id":"1350185302","filename":"file0"},{"photo_id":"1350185314","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350185312":["hashtag1","hashtag2"]},{"1350185314":["hashtag1","hashtag2"]},{"1350185317":["hashtag1","hashtag2"]},{"1350185302":["hashtag1","hashtag2"]},{"1350185305":["hashtag1","hashtag2"]},{"1350185315":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350185312, 1350185314, 1350185317, 1350185302, 1350185305, 1350185315)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.12714982032776 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 21:07:02.919106
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/21/06/image_06042025_21_06_44_10663.jpg', 2), ('/home/nano/Desktop/images/06042025/21/06/image_06042025_21_06_33_9639.jpg', 2), ('/home/nano/Desktop/images/06042025/21/06/image_06042025_21_06_24_10651.jpg', 2), ('/home/nano/Desktop/images/06042025/21/06/image_06042025_21_06_13_9658.jpg', 2), ('/home/nano/Desktop/images/06042025/21/05/image_06042025_21_06_04_9662.jpg', 2), ('/home/nano/Desktop/images/06042025/21/05/image_06042025_21_05_54_10662.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/21/06/image_06042025_21_06_44_10663.jpg', '/home/nano/Desktop/images/06042025/21/06/image_06042025_21_06_33_9639.jpg', '/home/nano/Desktop/images/06042025/21/06/image_06042025_21_06_24_10651.jpg', '/home/nano/Desktop/images/06042025/21/06/image_06042025_21_06_13_9658.jpg', '/home/nano/Desktop/images/06042025/21/05/image_06042025_21_06_04_9662.jpg', '/home/nano/Desktop/images/06042025/21/05/image_06042025_21_05_54_10662.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/21/06/image_06042025_21_06_44_10663.jpg
/home/nano/Desktop/images/06042025/21/06/image_06042025_21_06_33_9639.jpg
/home/nano/Desktop/images/06042025/21/06/image_06042025_21_06_24_10651.jpg
/home/nano/Desktop/images/06042025/21/06/image_06042025_21_06_13_9658.jpg
/home/nano/Desktop/images/06042025/21/05/image_06042025_21_06_04_9662.jpg
/home/nano/Desktop/images/06042025/21/05/image_06042025_21_05_54_10662.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350185365","1350185350","1350185352","1350185351","1350185348","1350185345"],"photo_ids_order":["1350185345","1350185348","1350185350","1350185351","1350185352","1350185365"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ef3c4307d187bd1ed0c54f63a5702332.jpg","text":"TemporaryFile(/tmp/multipartBody3402291185157548175asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966484746,"filename":"image_06042025_21_05_54_10662.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/18b56a5b9eb5a28d1cbb4307c4bc109c.jpg","text":"TemporaryFile(/tmp/multipartBody5262961987824913315asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966484746,"filename":"image_06042025_21_06_24_10651.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ba4efd5fd334d172acc2fd05ba06d67e.jpg","text":"TemporaryFile(/tmp/multipartBody6808531687805084886asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966484746,"filename":"image_06042025_21_06_04_9662.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/38b2905966e9b9a270fb48a7e7171d07.jpg","text":"TemporaryFile(/tmp/multipartBody2802274452980778778asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966484746,"filename":"image_06042025_21_06_13_9658.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/96dde98e23a125fe8492bba683c3b3a9.jpg","text":"TemporaryFile(/tmp/multipartBody5499643307069242140asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966484746,"filename":"image_06042025_21_06_33_9639.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/26aace8ab9527fb3cc0a2a521d4fb106.jpg","text":"TemporaryFile(/tmp/multipartBody6689449823091886812asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966484746,"filename":"image_06042025_21_06_44_10663.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350185350","file1":"1350185348","file0":"1350185345","file4":"1350185352","file5":"1350185365","file3":"1350185351"},"map_files_photo_id_array":[{"photo_id":"1350185365","filename":"file5"},{"photo_id":"1350185350","filename":"file2"},{"photo_id":"1350185352","filename":"file4"},{"photo_id":"1350185348","filename":"file1"},{"photo_id":"1350185345","filename":"file0"},{"photo_id":"1350185351","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350185365":["hashtag1","hashtag2"]},{"1350185350":["hashtag1","hashtag2"]},{"1350185352":["hashtag1","hashtag2"]},{"1350185351":["hashtag1","hashtag2"]},{"1350185348":["hashtag1","hashtag2"]},{"1350185345":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350185365, 1350185350, 1350185352, 1350185351, 1350185348, 1350185345)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.43694567680359 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 21:08:03.029499
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/21/07/image_06042025_21_07_44_10658.jpg', 2), ('/home/nano/Desktop/images/06042025/21/07/image_06042025_21_07_33_9649.jpg', 2), ('/home/nano/Desktop/images/06042025/21/07/image_06042025_21_07_24_9634.jpg', 2), ('/home/nano/Desktop/images/06042025/21/07/image_06042025_21_07_14_10694.jpg', 2), ('/home/nano/Desktop/images/06042025/21/06/image_06042025_21_07_03_9652.jpg', 2), ('/home/nano/Desktop/images/06042025/21/06/image_06042025_21_06_54_9640.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/21/07/image_06042025_21_07_44_10658.jpg', '/home/nano/Desktop/images/06042025/21/07/image_06042025_21_07_33_9649.jpg', '/home/nano/Desktop/images/06042025/21/07/image_06042025_21_07_24_9634.jpg', '/home/nano/Desktop/images/06042025/21/07/image_06042025_21_07_14_10694.jpg', '/home/nano/Desktop/images/06042025/21/06/image_06042025_21_07_03_9652.jpg', '/home/nano/Desktop/images/06042025/21/06/image_06042025_21_06_54_9640.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/21/07/image_06042025_21_07_44_10658.jpg
/home/nano/Desktop/images/06042025/21/07/image_06042025_21_07_33_9649.jpg
/home/nano/Desktop/images/06042025/21/07/image_06042025_21_07_24_9634.jpg
/home/nano/Desktop/images/06042025/21/07/image_06042025_21_07_14_10694.jpg
/home/nano/Desktop/images/06042025/21/06/image_06042025_21_07_03_9652.jpg
/home/nano/Desktop/images/06042025/21/06/image_06042025_21_06_54_9640.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350185603","1350185425","1350185548","1350185440","1350185428","1350185429"],"photo_ids_order":["1350185425","1350185428","1350185429","1350185440","1350185548","1350185603"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a4c5a3e72e7284ba718d73c5f089a209.jpg","text":"TemporaryFile(/tmp/multipartBody5452462083148337386asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966544593,"filename":"image_06042025_21_06_54_9640.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/3860ac48026b6eb662a9b1e92671413b.jpg","text":"TemporaryFile(/tmp/multipartBody3269647054139328093asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966544593,"filename":"image_06042025_21_07_44_10658.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/841d89d8004efdcc804fd60a06f75230.jpg","text":"TemporaryFile(/tmp/multipartBody7415896658796399728asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966544593,"filename":"image_06042025_21_07_03_9652.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c181ad13134fc13d1c653eaf5e45e905.jpg","text":"TemporaryFile(/tmp/multipartBody252421178965997483asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966544593,"filename":"image_06042025_21_07_14_10694.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/28d6043d7f345dd7ed9c33a8f8da5591.jpg","text":"TemporaryFile(/tmp/multipartBody2789471472369812546asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966544593,"filename":"image_06042025_21_07_33_9649.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/aada58fc36d4ffe30ab6c1e0d70b3186.jpg","text":"TemporaryFile(/tmp/multipartBody7634111742825635306asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966544593,"filename":"image_06042025_21_07_24_9634.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350185429","file1":"1350185428","file0":"1350185425","file4":"1350185548","file5":"1350185603","file3":"1350185440"},"map_files_photo_id_array":[{"photo_id":"1350185603","filename":"file5"},{"photo_id":"1350185429","filename":"file2"},{"photo_id":"1350185548","filename":"file4"},{"photo_id":"1350185428","filename":"file1"},{"photo_id":"1350185425","filename":"file0"},{"photo_id":"1350185440","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350185603":["hashtag1","hashtag2"]},{"1350185425":["hashtag1","hashtag2"]},{"1350185548":["hashtag1","hashtag2"]},{"1350185440":["hashtag1","hashtag2"]},{"1350185428":["hashtag1","hashtag2"]},{"1350185429":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350185603, 1350185425, 1350185548, 1350185440, 1350185428, 1350185429)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 38.69220948219299 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 21:09:03.291606
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/21/08/image_06042025_21_08_44_9803.jpg', 2), ('/home/nano/Desktop/images/06042025/21/08/image_06042025_21_08_34_9805.jpg', 2), ('/home/nano/Desktop/images/06042025/21/08/image_06042025_21_08_24_10814.jpg', 2), ('/home/nano/Desktop/images/06042025/21/08/image_06042025_21_08_13_9828.jpg', 2), ('/home/nano/Desktop/images/06042025/21/07/image_06042025_21_08_03_9668.jpg', 2), ('/home/nano/Desktop/images/06042025/21/07/image_06042025_21_07_54_9650.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/21/08/image_06042025_21_08_44_9803.jpg', '/home/nano/Desktop/images/06042025/21/08/image_06042025_21_08_34_9805.jpg', '/home/nano/Desktop/images/06042025/21/08/image_06042025_21_08_24_10814.jpg', '/home/nano/Desktop/images/06042025/21/08/image_06042025_21_08_13_9828.jpg', '/home/nano/Desktop/images/06042025/21/07/image_06042025_21_08_03_9668.jpg', '/home/nano/Desktop/images/06042025/21/07/image_06042025_21_07_54_9650.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/21/08/image_06042025_21_08_44_9803.jpg
/home/nano/Desktop/images/06042025/21/08/image_06042025_21_08_34_9805.jpg
/home/nano/Desktop/images/06042025/21/08/image_06042025_21_08_24_10814.jpg
/home/nano/Desktop/images/06042025/21/08/image_06042025_21_08_13_9828.jpg
/home/nano/Desktop/images/06042025/21/07/image_06042025_21_08_03_9668.jpg
/home/nano/Desktop/images/06042025/21/07/image_06042025_21_07_54_9650.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350185692","1350185686","1350185689","1350185721","1350185718","1350185714"],"photo_ids_order":["1350185686","1350185689","1350185692","1350185714","1350185718","1350185721"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/3e61ecce5b9a37de1f72b2320f5fd29a.jpg","text":"TemporaryFile(/tmp/multipartBody6601404323915439249asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966605226,"filename":"image_06042025_21_08_24_10814.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b17fbecfafe646d68f40a3fea802e451.jpg","text":"TemporaryFile(/tmp/multipartBody8789159727629632602asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966605226,"filename":"image_06042025_21_08_44_9803.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/6e9fedfe05a23dd3bf218e205d94c2ac.jpg","text":"TemporaryFile(/tmp/multipartBody6335737577485208255asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966605226,"filename":"image_06042025_21_08_34_9805.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/34bc05c82b374a4489c029d6f07431d3.jpg","text":"TemporaryFile(/tmp/multipartBody7280344788632599372asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966605226,"filename":"image_06042025_21_07_54_9650.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/8edbb882ee8d0ad113c97cf98ffa1ad2.jpg","text":"TemporaryFile(/tmp/multipartBody2819595559218291363asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966605226,"filename":"image_06042025_21_08_03_9668.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f1962d1ea3f4bc8193b89d7a5e9fbcfd.jpg","text":"TemporaryFile(/tmp/multipartBody884542469361866300asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966605226,"filename":"image_06042025_21_08_13_9828.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350185692","file1":"1350185689","file0":"1350185686","file4":"1350185718","file5":"1350185721","file3":"1350185714"},"map_files_photo_id_array":[{"photo_id":"1350185721","filename":"file5"},{"photo_id":"1350185692","filename":"file2"},{"photo_id":"1350185718","filename":"file4"},{"photo_id":"1350185689","filename":"file1"},{"photo_id":"1350185686","filename":"file0"},{"photo_id":"1350185714","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350185692":["hashtag1","hashtag2"]},{"1350185686":["hashtag1","hashtag2"]},{"1350185689":["hashtag1","hashtag2"]},{"1350185721":["hashtag1","hashtag2"]},{"1350185718":["hashtag1","hashtag2"]},{"1350185714":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350185692, 1350185686, 1350185689, 1350185721, 1350185718, 1350185714)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 38.20986461639404 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 21:10:03.186546
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/21/09/image_06042025_21_09_44_9805.jpg', 2), ('/home/nano/Desktop/images/06042025/21/09/image_06042025_21_09_34_9805.jpg', 2), ('/home/nano/Desktop/images/06042025/21/09/image_06042025_21_09_24_9823.jpg', 2), ('/home/nano/Desktop/images/06042025/21/09/image_06042025_21_09_14_10838.jpg', 2), ('/home/nano/Desktop/images/06042025/21/08/image_06042025_21_09_03_9806.jpg', 2), ('/home/nano/Desktop/images/06042025/21/08/image_06042025_21_08_53_9800.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/21/09/image_06042025_21_09_44_9805.jpg', '/home/nano/Desktop/images/06042025/21/09/image_06042025_21_09_34_9805.jpg', '/home/nano/Desktop/images/06042025/21/09/image_06042025_21_09_24_9823.jpg', '/home/nano/Desktop/images/06042025/21/09/image_06042025_21_09_14_10838.jpg', '/home/nano/Desktop/images/06042025/21/08/image_06042025_21_09_03_9806.jpg', '/home/nano/Desktop/images/06042025/21/08/image_06042025_21_08_53_9800.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/21/09/image_06042025_21_09_44_9805.jpg
/home/nano/Desktop/images/06042025/21/09/image_06042025_21_09_34_9805.jpg
/home/nano/Desktop/images/06042025/21/09/image_06042025_21_09_24_9823.jpg
/home/nano/Desktop/images/06042025/21/09/image_06042025_21_09_14_10838.jpg
/home/nano/Desktop/images/06042025/21/08/image_06042025_21_09_03_9806.jpg
/home/nano/Desktop/images/06042025/21/08/image_06042025_21_08_53_9800.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350185902","1350185796","1350185883","1350185958","1350185907","1350185906"],"photo_ids_order":["1350185796","1350185883","1350185902","1350185906","1350185907","1350185958"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e49724cd2c5e1f2a5596958b7ff700c5.jpg","text":"TemporaryFile(/tmp/multipartBody1902921788886483041asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966666632,"filename":"image_06042025_21_09_24_9823.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a9c2a86fefc1dfb628f4cc2ae57cff53.jpg","text":"TemporaryFile(/tmp/multipartBody4683282387068407739asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966666632,"filename":"image_06042025_21_09_44_9805.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/bf0c677a33f9f15cee04e2c99c3e87e4.jpg","text":"TemporaryFile(/tmp/multipartBody73148539933935255asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966666632,"filename":"image_06042025_21_09_34_9805.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/50fe028b8dc1483d76f3455956dd1d08.jpg","text":"TemporaryFile(/tmp/multipartBody8635952432420239132asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966666632,"filename":"image_06042025_21_08_53_9800.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/304999d39aa11198edaf85b2fd2e8d66.jpg","text":"TemporaryFile(/tmp/multipartBody3588440135454789312asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966666632,"filename":"image_06042025_21_09_03_9806.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/1e654bbde6d2218c9f1fa3dcf0ee4679.jpg","text":"TemporaryFile(/tmp/multipartBody2645997907553067806asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966666632,"filename":"image_06042025_21_09_14_10838.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350185902","file1":"1350185883","file0":"1350185796","file4":"1350185907","file5":"1350185958","file3":"1350185906"},"map_files_photo_id_array":[{"photo_id":"1350185958","filename":"file5"},{"photo_id":"1350185902","filename":"file2"},{"photo_id":"1350185907","filename":"file4"},{"photo_id":"1350185883","filename":"file1"},{"photo_id":"1350185796","filename":"file0"},{"photo_id":"1350185906","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350185902":["hashtag1","hashtag2"]},{"1350185796":["hashtag1","hashtag2"]},{"1350185883":["hashtag1","hashtag2"]},{"1350185958":["hashtag1","hashtag2"]},{"1350185907":["hashtag1","hashtag2"]},{"1350185906":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350185902, 1350185796, 1350185883, 1350185958, 1350185907, 1350185906)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 37.451712131500244 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 21:11:03.304532
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/21/10/image_06042025_21_10_43_9822.jpg', 2), ('/home/nano/Desktop/images/06042025/21/10/image_06042025_21_10_34_9817.jpg', 2), ('/home/nano/Desktop/images/06042025/21/10/image_06042025_21_10_14_9844.jpg', 2), ('/home/nano/Desktop/images/06042025/21/09/image_06042025_21_10_04_10860.jpg', 2), ('/home/nano/Desktop/images/06042025/21/09/image_06042025_21_09_53_9803.jpg', 2), ('/home/nano/Desktop/images/06042025/20/50/image_06042025_20_50_54_9639.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/21/10/image_06042025_21_10_43_9822.jpg', '/home/nano/Desktop/images/06042025/21/10/image_06042025_21_10_34_9817.jpg', '/home/nano/Desktop/images/06042025/21/10/image_06042025_21_10_14_9844.jpg', '/home/nano/Desktop/images/06042025/21/09/image_06042025_21_10_04_10860.jpg', '/home/nano/Desktop/images/06042025/21/09/image_06042025_21_09_53_9803.jpg', '/home/nano/Desktop/images/06042025/20/50/image_06042025_20_50_54_9639.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/21/10/image_06042025_21_10_43_9822.jpg
/home/nano/Desktop/images/06042025/21/10/image_06042025_21_10_34_9817.jpg
/home/nano/Desktop/images/06042025/21/10/image_06042025_21_10_14_9844.jpg
/home/nano/Desktop/images/06042025/21/09/image_06042025_21_10_04_10860.jpg
/home/nano/Desktop/images/06042025/21/09/image_06042025_21_09_53_9803.jpg
/home/nano/Desktop/images/06042025/20/50/image_06042025_20_50_54_9639.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350186166","1350186052","1350186171","1350186168","1350186039","1350186163"],"photo_ids_order":["1350186039","1350186052","1350186163","1350186166","1350186168","1350186171"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a6006b2d4d1acc26b3db6defdc0070c6.jpg","text":"TemporaryFile(/tmp/multipartBody5439446104045403435asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966725308,"filename":"image_06042025_21_10_04_10860.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4cf8e6a2e4df0662b8d1bb5c07a504c0.jpg","text":"TemporaryFile(/tmp/multipartBody2533439241318867617asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966725308,"filename":"image_06042025_21_10_34_9817.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/34b024bd63620ff69e236d1cb2038274.jpg","text":"TemporaryFile(/tmp/multipartBody2452899289639791036asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966725308,"filename":"image_06042025_20_50_54_9639.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/8d76eb0f99ba9eb9d9b0c349345cb1c0.jpg","text":"TemporaryFile(/tmp/multipartBody2400914808633831173asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966725308,"filename":"image_06042025_21_09_53_9803.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/7122675c9e237e88ecdaf27a6eb4a930.jpg","text":"TemporaryFile(/tmp/multipartBody9164139432664146484asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966725308,"filename":"image_06042025_21_10_43_9822.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b9daf6d3b4bbce402f983c6356c3fcfe.jpg","text":"TemporaryFile(/tmp/multipartBody297308414300837992asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966725308,"filename":"image_06042025_21_10_14_9844.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350186163","file1":"1350186052","file0":"1350186039","file4":"1350186168","file5":"1350186171","file3":"1350186166"},"map_files_photo_id_array":[{"photo_id":"1350186171","filename":"file5"},{"photo_id":"1350186163","filename":"file2"},{"photo_id":"1350186168","filename":"file4"},{"photo_id":"1350186052","filename":"file1"},{"photo_id":"1350186039","filename":"file0"},{"photo_id":"1350186166","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350186166":["hashtag1","hashtag2"]},{"1350186052":["hashtag1","hashtag2"]},{"1350186171":["hashtag1","hashtag2"]},{"1350186168":["hashtag1","hashtag2"]},{"1350186039":["hashtag1","hashtag2"]},{"1350186163":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350186166, 1350186052, 1350186171, 1350186168, 1350186039, 1350186163)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.90884709358215 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 21:12:02.371771
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/21/11/image_06042025_21_11_43_9843.jpg', 2), ('/home/nano/Desktop/images/06042025/21/11/image_06042025_21_11_34_9821.jpg', 2), ('/home/nano/Desktop/images/06042025/21/11/image_06042025_21_11_24_9822.jpg', 2), ('/home/nano/Desktop/images/06042025/21/11/image_06042025_21_11_14_9844.jpg', 2), ('/home/nano/Desktop/images/06042025/21/10/image_06042025_21_10_53_9820.jpg', 2), ('/home/nano/Desktop/images/06042025/19/57/image_06042025_19_58_03_9806.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/21/11/image_06042025_21_11_43_9843.jpg', '/home/nano/Desktop/images/06042025/21/11/image_06042025_21_11_34_9821.jpg', '/home/nano/Desktop/images/06042025/21/11/image_06042025_21_11_24_9822.jpg', '/home/nano/Desktop/images/06042025/21/11/image_06042025_21_11_14_9844.jpg', '/home/nano/Desktop/images/06042025/21/10/image_06042025_21_10_53_9820.jpg', '/home/nano/Desktop/images/06042025/19/57/image_06042025_19_58_03_9806.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/21/11/image_06042025_21_11_43_9843.jpg
/home/nano/Desktop/images/06042025/21/11/image_06042025_21_11_34_9821.jpg
/home/nano/Desktop/images/06042025/21/11/image_06042025_21_11_24_9822.jpg
/home/nano/Desktop/images/06042025/21/11/image_06042025_21_11_14_9844.jpg
/home/nano/Desktop/images/06042025/21/10/image_06042025_21_10_53_9820.jpg
/home/nano/Desktop/images/06042025/19/57/image_06042025_19_58_03_9806.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350186220","1350186216","1350186227","1350186221","1350186218","1350186212"],"photo_ids_order":["1350186212","1350186216","1350186218","1350186220","1350186221","1350186227"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/8541bcff679622a403591353d05de2e4.jpg","text":"TemporaryFile(/tmp/multipartBody6224629858629464579asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966784450,"filename":"image_06042025_21_11_14_9844.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/54874f7d3f92834312ad42797430b8c4.jpg","text":"TemporaryFile(/tmp/multipartBody1642407631341474987asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966784450,"filename":"image_06042025_21_11_34_9821.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c70fdf56b270bebbd0ef6ee16509f3b4.jpg","text":"TemporaryFile(/tmp/multipartBody874555564929505458asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966784450,"filename":"image_06042025_19_58_03_9806.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/361aee73b25e30c75f04203bfa079b51.jpg","text":"TemporaryFile(/tmp/multipartBody7619882614944204203asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966784450,"filename":"image_06042025_21_10_53_9820.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/77b29f95924fa397a126610c1b1b5362.jpg","text":"TemporaryFile(/tmp/multipartBody4797727730974558949asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966784450,"filename":"image_06042025_21_11_24_9822.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/db63ab664f843315e0b96cf24067a747.jpg","text":"TemporaryFile(/tmp/multipartBody3542477184160710549asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966784450,"filename":"image_06042025_21_11_43_9843.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350186218","file1":"1350186216","file0":"1350186212","file4":"1350186221","file5":"1350186227","file3":"1350186220"},"map_files_photo_id_array":[{"photo_id":"1350186227","filename":"file5"},{"photo_id":"1350186218","filename":"file2"},{"photo_id":"1350186221","filename":"file4"},{"photo_id":"1350186216","filename":"file1"},{"photo_id":"1350186212","filename":"file0"},{"photo_id":"1350186220","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350186220":["hashtag1","hashtag2"]},{"1350186216":["hashtag1","hashtag2"]},{"1350186227":["hashtag1","hashtag2"]},{"1350186221":["hashtag1","hashtag2"]},{"1350186218":["hashtag1","hashtag2"]},{"1350186212":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350186220, 1350186216, 1350186227, 1350186221, 1350186218, 1350186212)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.09265470504761 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 21:13:02.719768
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/21/12/image_06042025_21_12_33_9641.jpg', 2), ('/home/nano/Desktop/images/06042025/21/12/image_06042025_21_12_24_9847.jpg', 2), ('/home/nano/Desktop/images/06042025/21/12/image_06042025_21_12_14_9845.jpg', 2), ('/home/nano/Desktop/images/06042025/21/11/image_06042025_21_12_04_10833.jpg', 2), ('/home/nano/Desktop/images/06042025/21/11/image_06042025_21_11_53_9822.jpg', 2), ('/home/nano/Desktop/images/06042025/19/57/image_06042025_19_57_54_9645.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/21/12/image_06042025_21_12_33_9641.jpg', '/home/nano/Desktop/images/06042025/21/12/image_06042025_21_12_24_9847.jpg', '/home/nano/Desktop/images/06042025/21/12/image_06042025_21_12_14_9845.jpg', '/home/nano/Desktop/images/06042025/21/11/image_06042025_21_12_04_10833.jpg', '/home/nano/Desktop/images/06042025/21/11/image_06042025_21_11_53_9822.jpg', '/home/nano/Desktop/images/06042025/19/57/image_06042025_19_57_54_9645.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/21/12/image_06042025_21_12_33_9641.jpg
/home/nano/Desktop/images/06042025/21/12/image_06042025_21_12_24_9847.jpg
/home/nano/Desktop/images/06042025/21/12/image_06042025_21_12_14_9845.jpg
/home/nano/Desktop/images/06042025/21/11/image_06042025_21_12_04_10833.jpg
/home/nano/Desktop/images/06042025/21/11/image_06042025_21_11_53_9822.jpg
/home/nano/Desktop/images/06042025/19/57/image_06042025_19_57_54_9645.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350186346","1350186325","1350186255","1350186342","1350186349","1350186340"],"photo_ids_order":["1350186255","1350186325","1350186340","1350186342","1350186346","1350186349"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ecf156be63defd1d824ea481d4b40e59.jpg","text":"TemporaryFile(/tmp/multipartBody6723762415157569501asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966844884,"filename":"image_06042025_21_11_53_9822.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/8eaf936851fa476d6755d9555980e7c9.jpg","text":"TemporaryFile(/tmp/multipartBody2067853241081418947asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966844884,"filename":"image_06042025_21_12_24_9847.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/fe206ea8e4f2db9e41940a1744f64cbf.jpg","text":"TemporaryFile(/tmp/multipartBody8087069697454112779asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966844884,"filename":"image_06042025_21_12_33_9641.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a3b2667067eb6f35191e3b6813d40ef8.jpg","text":"TemporaryFile(/tmp/multipartBody335903508343955994asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966844884,"filename":"image_06042025_21_12_04_10833.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/96e84c4d48102886618a8a448175b58f.jpg","text":"TemporaryFile(/tmp/multipartBody1865939231749394254asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966844884,"filename":"image_06042025_19_57_54_9645.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/14b57b054d89b4f75b9630c6d9fe6bc4.jpg","text":"TemporaryFile(/tmp/multipartBody3908919034628968353asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966844884,"filename":"image_06042025_21_12_14_9845.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350186340","file1":"1350186325","file0":"1350186255","file4":"1350186346","file5":"1350186349","file3":"1350186342"},"map_files_photo_id_array":[{"photo_id":"1350186349","filename":"file5"},{"photo_id":"1350186340","filename":"file2"},{"photo_id":"1350186346","filename":"file4"},{"photo_id":"1350186325","filename":"file1"},{"photo_id":"1350186255","filename":"file0"},{"photo_id":"1350186342","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350186346":["hashtag1","hashtag2"]},{"1350186325":["hashtag1","hashtag2"]},{"1350186255":["hashtag1","hashtag2"]},{"1350186342":["hashtag1","hashtag2"]},{"1350186349":["hashtag1","hashtag2"]},{"1350186340":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350186346, 1350186325, 1350186255, 1350186342, 1350186349, 1350186340)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.542229413986206 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 21:14:02.779420
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/21/13/image_06042025_21_13_43_9759.jpg', 2), ('/home/nano/Desktop/images/06042025/21/13/image_06042025_21_13_33_9654.jpg', 2), ('/home/nano/Desktop/images/06042025/21/13/image_06042025_21_13_24_9653.jpg', 2), ('/home/nano/Desktop/images/06042025/21/13/image_06042025_21_13_14_10683.jpg', 2), ('/home/nano/Desktop/images/06042025/21/12/image_06042025_21_13_03_9644.jpg', 2), ('/home/nano/Desktop/images/06042025/21/12/image_06042025_21_12_44_10654.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/21/13/image_06042025_21_13_43_9759.jpg', '/home/nano/Desktop/images/06042025/21/13/image_06042025_21_13_33_9654.jpg', '/home/nano/Desktop/images/06042025/21/13/image_06042025_21_13_24_9653.jpg', '/home/nano/Desktop/images/06042025/21/13/image_06042025_21_13_14_10683.jpg', '/home/nano/Desktop/images/06042025/21/12/image_06042025_21_13_03_9644.jpg', '/home/nano/Desktop/images/06042025/21/12/image_06042025_21_12_44_10654.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/21/13/image_06042025_21_13_43_9759.jpg
/home/nano/Desktop/images/06042025/21/13/image_06042025_21_13_33_9654.jpg
/home/nano/Desktop/images/06042025/21/13/image_06042025_21_13_24_9653.jpg
/home/nano/Desktop/images/06042025/21/13/image_06042025_21_13_14_10683.jpg
/home/nano/Desktop/images/06042025/21/12/image_06042025_21_13_03_9644.jpg
/home/nano/Desktop/images/06042025/21/12/image_06042025_21_12_44_10654.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350186370","1350186372","1350186375","1350186380","1350186383","1350186367"],"photo_ids_order":["1350186367","1350186370","1350186372","1350186375","1350186380","1350186383"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/45bfad1648afa93e0345b3ccce8da362.jpg","text":"TemporaryFile(/tmp/multipartBody6396154328795581300asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966904567,"filename":"image_06042025_21_13_33_9654.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/2b5db7b2cb6d7243a003172f6f1e1e94.jpg","text":"TemporaryFile(/tmp/multipartBody8331897809944174591asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966904567,"filename":"image_06042025_21_13_24_9653.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f8a9c12bcecb4020e55ade639a3715c0.jpg","text":"TemporaryFile(/tmp/multipartBody1051796521220863978asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966904567,"filename":"image_06042025_21_13_14_10683.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/2d79ba260ce4154e03d3751b86524f48.jpg","text":"TemporaryFile(/tmp/multipartBody8311348554047575296asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966904567,"filename":"image_06042025_21_13_03_9644.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a03d92186ac1571c59a917f23f5267d7.jpg","text":"TemporaryFile(/tmp/multipartBody571590240210823960asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966904567,"filename":"image_06042025_21_12_44_10654.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/1a5084b1f98eb3ca063fa2fcc819a83f.jpg","text":"TemporaryFile(/tmp/multipartBody6915600369601244097asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966904567,"filename":"image_06042025_21_13_43_9759.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350186372","file1":"1350186370","file0":"1350186367","file4":"1350186380","file5":"1350186383","file3":"1350186375"},"map_files_photo_id_array":[{"photo_id":"1350186383","filename":"file5"},{"photo_id":"1350186372","filename":"file2"},{"photo_id":"1350186380","filename":"file4"},{"photo_id":"1350186370","filename":"file1"},{"photo_id":"1350186367","filename":"file0"},{"photo_id":"1350186375","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350186370":["hashtag1","hashtag2"]},{"1350186372":["hashtag1","hashtag2"]},{"1350186375":["hashtag1","hashtag2"]},{"1350186380":["hashtag1","hashtag2"]},{"1350186383":["hashtag1","hashtag2"]},{"1350186367":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350186370, 1350186372, 1350186375, 1350186380, 1350186383, 1350186367)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 36.51734638214111 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 21:15:02.700506
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/21/14/image_06042025_21_14_43_9725.jpg', 2), ('/home/nano/Desktop/images/06042025/21/14/image_06042025_21_14_34_9653.jpg', 2), ('/home/nano/Desktop/images/06042025/21/14/image_06042025_21_14_24_10788.jpg', 2), ('/home/nano/Desktop/images/06042025/21/14/image_06042025_21_14_13_9780.jpg', 2), ('/home/nano/Desktop/images/06042025/21/13/image_06042025_21_14_04_9671.jpg', 2), ('/home/nano/Desktop/images/06042025/21/13/image_06042025_21_13_54_10667.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/21/14/image_06042025_21_14_43_9725.jpg', '/home/nano/Desktop/images/06042025/21/14/image_06042025_21_14_34_9653.jpg', '/home/nano/Desktop/images/06042025/21/14/image_06042025_21_14_24_10788.jpg', '/home/nano/Desktop/images/06042025/21/14/image_06042025_21_14_13_9780.jpg', '/home/nano/Desktop/images/06042025/21/13/image_06042025_21_14_04_9671.jpg', '/home/nano/Desktop/images/06042025/21/13/image_06042025_21_13_54_10667.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/21/14/image_06042025_21_14_43_9725.jpg
/home/nano/Desktop/images/06042025/21/14/image_06042025_21_14_34_9653.jpg
/home/nano/Desktop/images/06042025/21/14/image_06042025_21_14_24_10788.jpg
/home/nano/Desktop/images/06042025/21/14/image_06042025_21_14_13_9780.jpg
/home/nano/Desktop/images/06042025/21/13/image_06042025_21_14_04_9671.jpg
/home/nano/Desktop/images/06042025/21/13/image_06042025_21_13_54_10667.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 1.9817278385162354 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 21:15:32.201800
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/21/15/image_06042025_21_15_43_9649.jpg', 2), ('/home/nano/Desktop/images/06042025/21/15/image_06042025_21_15_34_9648.jpg', 2), ('/home/nano/Desktop/images/06042025/21/15/image_06042025_21_15_24_10658.jpg', 2), ('/home/nano/Desktop/images/06042025/21/15/image_06042025_21_15_13_9650.jpg', 2), ('/home/nano/Desktop/images/06042025/21/14/image_06042025_21_15_04_9667.jpg', 2), ('/home/nano/Desktop/images/06042025/21/14/image_06042025_21_14_54_10643.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/21/15/image_06042025_21_15_43_9649.jpg', '/home/nano/Desktop/images/06042025/21/15/image_06042025_21_15_34_9648.jpg', '/home/nano/Desktop/images/06042025/21/15/image_06042025_21_15_24_10658.jpg', '/home/nano/Desktop/images/06042025/21/15/image_06042025_21_15_13_9650.jpg', '/home/nano/Desktop/images/06042025/21/14/image_06042025_21_15_04_9667.jpg', '/home/nano/Desktop/images/06042025/21/14/image_06042025_21_14_54_10643.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/21/15/image_06042025_21_15_43_9649.jpg
/home/nano/Desktop/images/06042025/21/15/image_06042025_21_15_34_9648.jpg
/home/nano/Desktop/images/06042025/21/15/image_06042025_21_15_24_10658.jpg
/home/nano/Desktop/images/06042025/21/15/image_06042025_21_15_13_9650.jpg
/home/nano/Desktop/images/06042025/21/14/image_06042025_21_15_04_9667.jpg
/home/nano/Desktop/images/06042025/21/14/image_06042025_21_14_54_10643.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350186463","1350186477","1350186450","1350186453","1350186435","1350186446"],"photo_ids_order":["1350186435","1350186446","1350186450","1350186453","1350186463","1350186477"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/91bd4061398de7b0f488fa8cc42cf7b3.jpg","text":"TemporaryFile(/tmp/multipartBody2986923160570469132asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966993722,"filename":"image_06042025_21_15_04_9667.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/aae3dabf20fc4d3a73c79810f65b682f.jpg","text":"TemporaryFile(/tmp/multipartBody4802801607045298113asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966993722,"filename":"image_06042025_21_14_54_10643.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4176ff9cdfdd04c8181e001550c30fe1.jpg","text":"TemporaryFile(/tmp/multipartBody1475199960747519502asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966993722,"filename":"image_06042025_21_15_24_10658.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/303128d6f850c976798956e237f4c3ab.jpg","text":"TemporaryFile(/tmp/multipartBody2924029619754909425asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966993722,"filename":"image_06042025_21_15_13_9650.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ef16f697be9a311c10b5342c717d2ce8.jpg","text":"TemporaryFile(/tmp/multipartBody7706213363161497344asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966993722,"filename":"image_06042025_21_15_43_9649.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/5ff87ac5fd14942658d78a46fef6d6e6.jpg","text":"TemporaryFile(/tmp/multipartBody6843954196643413148asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743966993722,"filename":"image_06042025_21_15_34_9648.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350186450","file1":"1350186446","file0":"1350186435","file4":"1350186463","file5":"1350186477","file3":"1350186453"},"map_files_photo_id_array":[{"photo_id":"1350186477","filename":"file5"},{"photo_id":"1350186450","filename":"file2"},{"photo_id":"1350186463","filename":"file4"},{"photo_id":"1350186446","filename":"file1"},{"photo_id":"1350186435","filename":"file0"},{"photo_id":"1350186453","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350186463":["hashtag1","hashtag2"]},{"1350186477":["hashtag1","hashtag2"]},{"1350186450":["hashtag1","hashtag2"]},{"1350186453":["hashtag1","hashtag2"]},{"1350186435":["hashtag1","hashtag2"]},{"1350186446":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350186463, 1350186477, 1350186450, 1350186453, 1350186435, 1350186446)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.17167901992798 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 21:16:32.305155
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/21/16/image_06042025_21_16_13_9603.jpg', 2), ('/home/nano/Desktop/images/06042025/21/15/image_06042025_21_15_54_10659.jpg', 2), ('/home/nano/Desktop/images/06042025/21/14/image_06042025_21_14_43_9725.jpg', 2), ('/home/nano/Desktop/images/06042025/21/14/image_06042025_21_14_34_9653.jpg', 2), ('/home/nano/Desktop/images/06042025/21/14/image_06042025_21_14_24_10788.jpg', 2), ('/home/nano/Desktop/images/06042025/21/14/image_06042025_21_14_13_9780.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/21/16/image_06042025_21_16_13_9603.jpg', '/home/nano/Desktop/images/06042025/21/15/image_06042025_21_15_54_10659.jpg', '/home/nano/Desktop/images/06042025/21/14/image_06042025_21_14_43_9725.jpg', '/home/nano/Desktop/images/06042025/21/14/image_06042025_21_14_34_9653.jpg', '/home/nano/Desktop/images/06042025/21/14/image_06042025_21_14_24_10788.jpg', '/home/nano/Desktop/images/06042025/21/14/image_06042025_21_14_13_9780.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/21/16/image_06042025_21_16_13_9603.jpg
/home/nano/Desktop/images/06042025/21/15/image_06042025_21_15_54_10659.jpg
/home/nano/Desktop/images/06042025/21/14/image_06042025_21_14_43_9725.jpg
/home/nano/Desktop/images/06042025/21/14/image_06042025_21_14_34_9653.jpg
/home/nano/Desktop/images/06042025/21/14/image_06042025_21_14_24_10788.jpg
/home/nano/Desktop/images/06042025/21/14/image_06042025_21_14_13_9780.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350186622","1350186570","1350186581","1350186575","1350186584","1350186577"],"photo_ids_order":["1350186570","1350186575","1350186577","1350186581","1350186584","1350186622"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/030a9a0b53399de30a31e88ff074bdea.jpg","text":"TemporaryFile(/tmp/multipartBody5763454448380778815asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967055100,"filename":"image_06042025_21_14_13_9780.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/6df582fdb9a9bad42b3411b77dc35629.jpg","text":"TemporaryFile(/tmp/multipartBody597545990551712234asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967055100,"filename":"image_06042025_21_16_13_9603.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e06aabdc733919c90e583b6f4d379cea.jpg","text":"TemporaryFile(/tmp/multipartBody6358741174396785821asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967055100,"filename":"image_06042025_21_14_34_9653.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/1e9c2d8c702bb8b6df21c82601d694a0.jpg","text":"TemporaryFile(/tmp/multipartBody6469196730514563659asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967055100,"filename":"image_06042025_21_15_54_10659.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4780131e491b2eaaf1e5478a737a9488.jpg","text":"TemporaryFile(/tmp/multipartBody7995264009220491465asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967055100,"filename":"image_06042025_21_14_24_10788.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/6f48ae927417d3cbf7b09214875e30b5.jpg","text":"TemporaryFile(/tmp/multipartBody560960085284604432asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967055100,"filename":"image_06042025_21_14_43_9725.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350186577","file1":"1350186575","file0":"1350186570","file4":"1350186584","file5":"1350186622","file3":"1350186581"},"map_files_photo_id_array":[{"photo_id":"1350186622","filename":"file5"},{"photo_id":"1350186577","filename":"file2"},{"photo_id":"1350186584","filename":"file4"},{"photo_id":"1350186575","filename":"file1"},{"photo_id":"1350186570","filename":"file0"},{"photo_id":"1350186581","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350186622":["hashtag1","hashtag2"]},{"1350186570":["hashtag1","hashtag2"]},{"1350186581":["hashtag1","hashtag2"]},{"1350186575":["hashtag1","hashtag2"]},{"1350186584":["hashtag1","hashtag2"]},{"1350186577":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350186622, 1350186570, 1350186581, 1350186575, 1350186584, 1350186577)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.933459520339966 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 21:17:32.423856
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/21/17/image_06042025_21_17_43_9650.jpg', 2), ('/home/nano/Desktop/images/06042025/21/17/image_06042025_21_17_34_9651.jpg', 2), ('/home/nano/Desktop/images/06042025/21/17/image_06042025_21_17_24_10658.jpg', 2), ('/home/nano/Desktop/images/06042025/21/17/image_06042025_21_17_13_9665.jpg', 2), ('/home/nano/Desktop/images/06042025/21/16/image_06042025_21_17_04_9660.jpg', 2), ('/home/nano/Desktop/images/06042025/21/16/image_06042025_21_16_43_9650.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/21/17/image_06042025_21_17_43_9650.jpg', '/home/nano/Desktop/images/06042025/21/17/image_06042025_21_17_34_9651.jpg', '/home/nano/Desktop/images/06042025/21/17/image_06042025_21_17_24_10658.jpg', '/home/nano/Desktop/images/06042025/21/17/image_06042025_21_17_13_9665.jpg', '/home/nano/Desktop/images/06042025/21/16/image_06042025_21_17_04_9660.jpg', '/home/nano/Desktop/images/06042025/21/16/image_06042025_21_16_43_9650.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/21/17/image_06042025_21_17_43_9650.jpg
/home/nano/Desktop/images/06042025/21/17/image_06042025_21_17_34_9651.jpg
/home/nano/Desktop/images/06042025/21/17/image_06042025_21_17_24_10658.jpg
/home/nano/Desktop/images/06042025/21/17/image_06042025_21_17_13_9665.jpg
/home/nano/Desktop/images/06042025/21/16/image_06042025_21_17_04_9660.jpg
/home/nano/Desktop/images/06042025/21/16/image_06042025_21_16_43_9650.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350186657","1350186662","1350186641","1350186707","1350186664","1350186646"],"photo_ids_order":["1350186641","1350186646","1350186657","1350186662","1350186664","1350186707"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/5a5e7b84b33ffc43d398b2ec87df49e7.jpg","text":"TemporaryFile(/tmp/multipartBody9084360588364480405asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967114006,"filename":"image_06042025_21_17_24_10658.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/5903b3c2c58b35299c0c380dc7317dc4.jpg","text":"TemporaryFile(/tmp/multipartBody5757039299707295787asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967114006,"filename":"image_06042025_21_17_13_9665.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4e537bd04c7a610b242cfc1a5edf1dc1.jpg","text":"TemporaryFile(/tmp/multipartBody8746916615511539103asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967114006,"filename":"image_06042025_21_17_43_9650.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/d678fa840ba46a7e66d5d246a14070f2.jpg","text":"TemporaryFile(/tmp/multipartBody4543853433197279404asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967114006,"filename":"image_06042025_21_16_43_9650.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/931277dfe6f9d7cc32829c5adc7f1905.jpg","text":"TemporaryFile(/tmp/multipartBody4833111981280918650asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967114006,"filename":"image_06042025_21_17_04_9660.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/0b0fbbf93a7d1e6bc6fb6bc987770d4f.jpg","text":"TemporaryFile(/tmp/multipartBody1417511850431749163asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967114006,"filename":"image_06042025_21_17_34_9651.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350186657","file1":"1350186646","file0":"1350186641","file4":"1350186664","file5":"1350186707","file3":"1350186662"},"map_files_photo_id_array":[{"photo_id":"1350186707","filename":"file5"},{"photo_id":"1350186657","filename":"file2"},{"photo_id":"1350186664","filename":"file4"},{"photo_id":"1350186646","filename":"file1"},{"photo_id":"1350186641","filename":"file0"},{"photo_id":"1350186662","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350186657":["hashtag1","hashtag2"]},{"1350186662":["hashtag1","hashtag2"]},{"1350186641":["hashtag1","hashtag2"]},{"1350186707":["hashtag1","hashtag2"]},{"1350186664":["hashtag1","hashtag2"]},{"1350186646":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350186657, 1350186662, 1350186641, 1350186707, 1350186664, 1350186646)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.17466497421265 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 21:18:32.529560
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/21/18/image_06042025_21_18_44_9776.jpg', 2), ('/home/nano/Desktop/images/06042025/21/18/image_06042025_21_18_34_9775.jpg', 2), ('/home/nano/Desktop/images/06042025/21/18/image_06042025_21_18_24_10799.jpg', 2), ('/home/nano/Desktop/images/06042025/21/18/image_06042025_21_18_13_9668.jpg', 2), ('/home/nano/Desktop/images/06042025/21/17/image_06042025_21_18_04_9653.jpg', 2), ('/home/nano/Desktop/images/06042025/21/17/image_06042025_21_17_54_10658.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/21/18/image_06042025_21_18_44_9776.jpg', '/home/nano/Desktop/images/06042025/21/18/image_06042025_21_18_34_9775.jpg', '/home/nano/Desktop/images/06042025/21/18/image_06042025_21_18_24_10799.jpg', '/home/nano/Desktop/images/06042025/21/18/image_06042025_21_18_13_9668.jpg', '/home/nano/Desktop/images/06042025/21/17/image_06042025_21_18_04_9653.jpg', '/home/nano/Desktop/images/06042025/21/17/image_06042025_21_17_54_10658.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/21/18/image_06042025_21_18_44_9776.jpg
/home/nano/Desktop/images/06042025/21/18/image_06042025_21_18_34_9775.jpg
/home/nano/Desktop/images/06042025/21/18/image_06042025_21_18_24_10799.jpg
/home/nano/Desktop/images/06042025/21/18/image_06042025_21_18_13_9668.jpg
/home/nano/Desktop/images/06042025/21/17/image_06042025_21_18_04_9653.jpg
/home/nano/Desktop/images/06042025/21/17/image_06042025_21_17_54_10658.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350186826","1350186814","1350186810","1350186804","1350186824","1350186865"],"photo_ids_order":["1350186804","1350186810","1350186814","1350186824","1350186826","1350186865"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/116d9d2ebfee9c79bf03e6fd4fa7a857.jpg","text":"TemporaryFile(/tmp/multipartBody207873296671979203asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967174486,"filename":"image_06042025_21_18_04_9653.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/dbfd7d29a1b3e10d0272a95c3d5227ce.jpg","text":"TemporaryFile(/tmp/multipartBody6217097102156705863asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967174486,"filename":"image_06042025_21_18_24_10799.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/9368d0ba6d8f4172bb9a600d06a6af64.jpg","text":"TemporaryFile(/tmp/multipartBody3216503083261601776asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967174486,"filename":"image_06042025_21_18_34_9775.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/8b70769eb6833a02e3dbd11620612c2f.jpg","text":"TemporaryFile(/tmp/multipartBody5124617682391768357asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967174486,"filename":"image_06042025_21_18_44_9776.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a0f75ba0c4ff66cb7aa542ac68ec9397.jpg","text":"TemporaryFile(/tmp/multipartBody6323199085887266040asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967174486,"filename":"image_06042025_21_18_13_9668.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/5c0ffaa9ab4996832b887ff6a3b83450.jpg","text":"TemporaryFile(/tmp/multipartBody5925151385368810964asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967174486,"filename":"image_06042025_21_17_54_10658.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350186814","file1":"1350186810","file0":"1350186804","file4":"1350186826","file5":"1350186865","file3":"1350186824"},"map_files_photo_id_array":[{"photo_id":"1350186865","filename":"file5"},{"photo_id":"1350186814","filename":"file2"},{"photo_id":"1350186826","filename":"file4"},{"photo_id":"1350186810","filename":"file1"},{"photo_id":"1350186804","filename":"file0"},{"photo_id":"1350186824","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350186826":["hashtag1","hashtag2"]},{"1350186814":["hashtag1","hashtag2"]},{"1350186810":["hashtag1","hashtag2"]},{"1350186804":["hashtag1","hashtag2"]},{"1350186824":["hashtag1","hashtag2"]},{"1350186865":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350186826, 1350186814, 1350186810, 1350186804, 1350186824, 1350186865)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.792935371398926 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 21:19:32.639963
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/21/19/image_06042025_21_19_44_10659.jpg', 2), ('/home/nano/Desktop/images/06042025/21/19/image_06042025_21_19_33_9782.jpg', 2), ('/home/nano/Desktop/images/06042025/21/19/image_06042025_21_19_24_9640.jpg', 2), ('/home/nano/Desktop/images/06042025/21/19/image_06042025_21_19_14_9791.jpg', 2), ('/home/nano/Desktop/images/06042025/21/18/image_06042025_21_19_04_10788.jpg', 2), ('/home/nano/Desktop/images/06042025/21/18/image_06042025_21_18_53_9775.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/21/19/image_06042025_21_19_44_10659.jpg', '/home/nano/Desktop/images/06042025/21/19/image_06042025_21_19_33_9782.jpg', '/home/nano/Desktop/images/06042025/21/19/image_06042025_21_19_24_9640.jpg', '/home/nano/Desktop/images/06042025/21/19/image_06042025_21_19_14_9791.jpg', '/home/nano/Desktop/images/06042025/21/18/image_06042025_21_19_04_10788.jpg', '/home/nano/Desktop/images/06042025/21/18/image_06042025_21_18_53_9775.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/21/19/image_06042025_21_19_44_10659.jpg
/home/nano/Desktop/images/06042025/21/19/image_06042025_21_19_33_9782.jpg
/home/nano/Desktop/images/06042025/21/19/image_06042025_21_19_24_9640.jpg
/home/nano/Desktop/images/06042025/21/19/image_06042025_21_19_14_9791.jpg
/home/nano/Desktop/images/06042025/21/18/image_06042025_21_19_04_10788.jpg
/home/nano/Desktop/images/06042025/21/18/image_06042025_21_18_53_9775.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350186907","1350186993","1350186894","1350186903","1350186989","1350186898"],"photo_ids_order":["1350186894","1350186898","1350186903","1350186907","1350186989","1350186993"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f1c099e499c2e798d08d154b1ffdea35.jpg","text":"TemporaryFile(/tmp/multipartBody8977061480228519442asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967234455,"filename":"image_06042025_21_19_14_9791.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c1d5dbba2aa2822806643ca2ad1859ba.jpg","text":"TemporaryFile(/tmp/multipartBody7893668683127308959asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967234455,"filename":"image_06042025_21_18_53_9775.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/cf0693726dd305ca5469f0f6b36d9a9d.jpg","text":"TemporaryFile(/tmp/multipartBody8364644786705798062asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967234455,"filename":"image_06042025_21_19_44_10659.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/88b791984214deea9181801f52ade215.jpg","text":"TemporaryFile(/tmp/multipartBody5780460123037064575asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967234455,"filename":"image_06042025_21_19_24_9640.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/67777f53dd825296fb3f2cb500d694ef.jpg","text":"TemporaryFile(/tmp/multipartBody412119867485709963asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967234455,"filename":"image_06042025_21_19_04_10788.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f59e444d6dd808bb2c444fa46dbf2789.jpg","text":"TemporaryFile(/tmp/multipartBody5454513264318954270asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967234455,"filename":"image_06042025_21_19_33_9782.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350186903","file1":"1350186898","file0":"1350186894","file4":"1350186989","file5":"1350186993","file3":"1350186907"},"map_files_photo_id_array":[{"photo_id":"1350186993","filename":"file5"},{"photo_id":"1350186903","filename":"file2"},{"photo_id":"1350186989","filename":"file4"},{"photo_id":"1350186898","filename":"file1"},{"photo_id":"1350186894","filename":"file0"},{"photo_id":"1350186907","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350186907":["hashtag1","hashtag2"]},{"1350186993":["hashtag1","hashtag2"]},{"1350186894":["hashtag1","hashtag2"]},{"1350186903":["hashtag1","hashtag2"]},{"1350186989":["hashtag1","hashtag2"]},{"1350186898":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350186907, 1350186993, 1350186894, 1350186903, 1350186989, 1350186898)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 37.254886865615845 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 21:20:32.728360
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/21/20/image_06042025_21_20_44_10797.jpg', 2), ('/home/nano/Desktop/images/06042025/21/20/image_06042025_21_20_33_9649.jpg', 2), ('/home/nano/Desktop/images/06042025/21/20/image_06042025_21_20_24_9655.jpg', 2), ('/home/nano/Desktop/images/06042025/21/20/image_06042025_21_20_14_10699.jpg', 2), ('/home/nano/Desktop/images/06042025/21/19/image_06042025_21_20_03_9657.jpg', 2), ('/home/nano/Desktop/images/06042025/21/19/image_06042025_21_19_54_9650.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/21/20/image_06042025_21_20_44_10797.jpg', '/home/nano/Desktop/images/06042025/21/20/image_06042025_21_20_33_9649.jpg', '/home/nano/Desktop/images/06042025/21/20/image_06042025_21_20_24_9655.jpg', '/home/nano/Desktop/images/06042025/21/20/image_06042025_21_20_14_10699.jpg', '/home/nano/Desktop/images/06042025/21/19/image_06042025_21_20_03_9657.jpg', '/home/nano/Desktop/images/06042025/21/19/image_06042025_21_19_54_9650.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/21/20/image_06042025_21_20_44_10797.jpg
/home/nano/Desktop/images/06042025/21/20/image_06042025_21_20_33_9649.jpg
/home/nano/Desktop/images/06042025/21/20/image_06042025_21_20_24_9655.jpg
/home/nano/Desktop/images/06042025/21/20/image_06042025_21_20_14_10699.jpg
/home/nano/Desktop/images/06042025/21/19/image_06042025_21_20_03_9657.jpg
/home/nano/Desktop/images/06042025/21/19/image_06042025_21_19_54_9650.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350187120","1350187116","1350187110","1350187011","1350187107","1350187008"],"photo_ids_order":["1350187008","1350187011","1350187107","1350187110","1350187116","1350187120"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/1ffc7c3547b21418a844b1943c72e5e6.jpg","text":"TemporaryFile(/tmp/multipartBody6499795400099916150asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967294580,"filename":"image_06042025_21_19_54_9650.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/fb18df191f8aa2c4972aa0520662330f.jpg","text":"TemporaryFile(/tmp/multipartBody5267760717330925156asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967294580,"filename":"image_06042025_21_20_03_9657.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/555b005a99ecab8db4b80f16603bbbb1.jpg","text":"TemporaryFile(/tmp/multipartBody7769444206975521948asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967294580,"filename":"image_06042025_21_20_14_10699.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/8a18cd929cbe937a4db5217a1803f678.jpg","text":"TemporaryFile(/tmp/multipartBody1142013799389220343asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967294580,"filename":"image_06042025_21_20_33_9649.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/6e6e0095261d34cfa75d8ad43d1f8b04.jpg","text":"TemporaryFile(/tmp/multipartBody2418142900041978129asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967294580,"filename":"image_06042025_21_20_24_9655.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f12a87e2c8e88d300f556fb3f33c4efd.jpg","text":"TemporaryFile(/tmp/multipartBody1377447984669864607asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967294580,"filename":"image_06042025_21_20_44_10797.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350187107","file1":"1350187011","file0":"1350187008","file4":"1350187116","file5":"1350187120","file3":"1350187110"},"map_files_photo_id_array":[{"photo_id":"1350187120","filename":"file5"},{"photo_id":"1350187107","filename":"file2"},{"photo_id":"1350187116","filename":"file4"},{"photo_id":"1350187011","filename":"file1"},{"photo_id":"1350187008","filename":"file0"},{"photo_id":"1350187110","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350187120":["hashtag1","hashtag2"]},{"1350187116":["hashtag1","hashtag2"]},{"1350187110":["hashtag1","hashtag2"]},{"1350187011":["hashtag1","hashtag2"]},{"1350187107":["hashtag1","hashtag2"]},{"1350187008":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350187120, 1350187116, 1350187110, 1350187011, 1350187107, 1350187008)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 38.907601833343506 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 21:21:31.828144
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/21/21/image_06042025_21_21_43_9684.jpg', 2), ('/home/nano/Desktop/images/06042025/21/21/image_06042025_21_21_34_9655.jpg', 2), ('/home/nano/Desktop/images/06042025/21/21/image_06042025_21_21_24_10666.jpg', 2), ('/home/nano/Desktop/images/06042025/21/21/image_06042025_21_21_13_9784.jpg', 2), ('/home/nano/Desktop/images/06042025/21/20/image_06042025_21_21_04_9767.jpg', 2), ('/home/nano/Desktop/images/06042025/21/20/image_06042025_21_20_54_9785.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/21/21/image_06042025_21_21_43_9684.jpg', '/home/nano/Desktop/images/06042025/21/21/image_06042025_21_21_34_9655.jpg', '/home/nano/Desktop/images/06042025/21/21/image_06042025_21_21_24_10666.jpg', '/home/nano/Desktop/images/06042025/21/21/image_06042025_21_21_13_9784.jpg', '/home/nano/Desktop/images/06042025/21/20/image_06042025_21_21_04_9767.jpg', '/home/nano/Desktop/images/06042025/21/20/image_06042025_21_20_54_9785.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/21/21/image_06042025_21_21_43_9684.jpg
/home/nano/Desktop/images/06042025/21/21/image_06042025_21_21_34_9655.jpg
/home/nano/Desktop/images/06042025/21/21/image_06042025_21_21_24_10666.jpg
/home/nano/Desktop/images/06042025/21/21/image_06042025_21_21_13_9784.jpg
/home/nano/Desktop/images/06042025/21/20/image_06042025_21_21_04_9767.jpg
/home/nano/Desktop/images/06042025/21/20/image_06042025_21_20_54_9785.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350187149","1350187142","1350187133","1350187153","1350187138","1350187147"],"photo_ids_order":["1350187133","1350187138","1350187142","1350187147","1350187149","1350187153"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/3d500955035f9419f449643621a02926.jpg","text":"TemporaryFile(/tmp/multipartBody4961820095866219299asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967353580,"filename":"image_06042025_21_21_04_9767.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a9f930ead5f6783d6030f7a1ed64ff00.jpg","text":"TemporaryFile(/tmp/multipartBody767780749561293865asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967353580,"filename":"image_06042025_21_21_24_10666.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/58a75b574678a1c2bfe94737887e5bc2.jpg","text":"TemporaryFile(/tmp/multipartBody1197061098365366390asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967353580,"filename":"image_06042025_21_21_43_9684.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/35f5e3f27cac5f529c51717a8b0f4cb6.jpg","text":"TemporaryFile(/tmp/multipartBody6132216342173992535asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967353580,"filename":"image_06042025_21_20_54_9785.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/59a7575423917a196a7752a70eb75c06.jpg","text":"TemporaryFile(/tmp/multipartBody1539030839193586295asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967353580,"filename":"image_06042025_21_21_34_9655.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/825fd946f958599a22b53bec54f929ac.jpg","text":"TemporaryFile(/tmp/multipartBody1213687522169040938asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967353580,"filename":"image_06042025_21_21_13_9784.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350187142","file1":"1350187138","file0":"1350187133","file4":"1350187149","file5":"1350187153","file3":"1350187147"},"map_files_photo_id_array":[{"photo_id":"1350187153","filename":"file5"},{"photo_id":"1350187142","filename":"file2"},{"photo_id":"1350187149","filename":"file4"},{"photo_id":"1350187138","filename":"file1"},{"photo_id":"1350187133","filename":"file0"},{"photo_id":"1350187147","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350187149":["hashtag1","hashtag2"]},{"1350187142":["hashtag1","hashtag2"]},{"1350187133":["hashtag1","hashtag2"]},{"1350187153":["hashtag1","hashtag2"]},{"1350187138":["hashtag1","hashtag2"]},{"1350187147":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350187149, 1350187142, 1350187133, 1350187153, 1350187138, 1350187147)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 38.069446086883545 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 21:22:31.916250
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/21/22/image_06042025_21_22_24_10659.jpg', 2), ('/home/nano/Desktop/images/06042025/21/22/image_06042025_21_22_13_9659.jpg', 2), ('/home/nano/Desktop/images/06042025/21/21/image_06042025_21_22_04_9668.jpg', 2), ('/home/nano/Desktop/images/06042025/21/21/image_06042025_21_21_54_10653.jpg', 2), ('/home/nano/Desktop/images/06042025/21/13/image_06042025_21_14_04_9671.jpg', 2), ('/home/nano/Desktop/images/06042025/21/13/image_06042025_21_13_54_10667.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/21/22/image_06042025_21_22_24_10659.jpg', '/home/nano/Desktop/images/06042025/21/22/image_06042025_21_22_13_9659.jpg', '/home/nano/Desktop/images/06042025/21/21/image_06042025_21_22_04_9668.jpg', '/home/nano/Desktop/images/06042025/21/21/image_06042025_21_21_54_10653.jpg', '/home/nano/Desktop/images/06042025/21/13/image_06042025_21_14_04_9671.jpg', '/home/nano/Desktop/images/06042025/21/13/image_06042025_21_13_54_10667.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/21/22/image_06042025_21_22_24_10659.jpg
/home/nano/Desktop/images/06042025/21/22/image_06042025_21_22_13_9659.jpg
/home/nano/Desktop/images/06042025/21/21/image_06042025_21_22_04_9668.jpg
/home/nano/Desktop/images/06042025/21/21/image_06042025_21_21_54_10653.jpg
/home/nano/Desktop/images/06042025/21/13/image_06042025_21_14_04_9671.jpg
/home/nano/Desktop/images/06042025/21/13/image_06042025_21_13_54_10667.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350187257","1350187221","1350187224","1350187229","1350187216","1350187219"],"photo_ids_order":["1350187216","1350187219","1350187221","1350187224","1350187229","1350187257"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ce21a5b369476d52e0135fc663fb8bda.jpg","text":"TemporaryFile(/tmp/multipartBody2604843222028578582asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967413508,"filename":"image_06042025_21_13_54_10667.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/22cbe6296dc0eac83786d2a096f9df46.jpg","text":"TemporaryFile(/tmp/multipartBody3699204339277902614asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967413508,"filename":"image_06042025_21_22_04_9668.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/3e4aa1b20b059121a93ff05846494793.jpg","text":"TemporaryFile(/tmp/multipartBody4295182215612219327asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967413508,"filename":"image_06042025_21_21_54_10653.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/146f135e70cb627a666d282c430bb88f.jpg","text":"TemporaryFile(/tmp/multipartBody7383998565938653310asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967413508,"filename":"image_06042025_21_14_04_9671.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/de7f0dc85348e250084b1941df582ce1.jpg","text":"TemporaryFile(/tmp/multipartBody7387904351281567005asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967413508,"filename":"image_06042025_21_22_24_10659.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/33c3272bc799ea8778518bfa87c8025f.jpg","text":"TemporaryFile(/tmp/multipartBody3285074338024492233asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967413508,"filename":"image_06042025_21_22_13_9659.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350187221","file1":"1350187219","file0":"1350187216","file4":"1350187229","file5":"1350187257","file3":"1350187224"},"map_files_photo_id_array":[{"photo_id":"1350187257","filename":"file5"},{"photo_id":"1350187221","filename":"file2"},{"photo_id":"1350187229","filename":"file4"},{"photo_id":"1350187219","filename":"file1"},{"photo_id":"1350187216","filename":"file0"},{"photo_id":"1350187224","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350187257":["hashtag1","hashtag2"]},{"1350187221":["hashtag1","hashtag2"]},{"1350187224":["hashtag1","hashtag2"]},{"1350187229":["hashtag1","hashtag2"]},{"1350187216":["hashtag1","hashtag2"]},{"1350187219":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350187257, 1350187221, 1350187224, 1350187229, 1350187216, 1350187219)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.9238018989563 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 21:23:32.024499
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/21/23/image_06042025_21_23_44_9646.jpg', 2), ('/home/nano/Desktop/images/06042025/21/23/image_06042025_21_23_34_10657.jpg', 2), ('/home/nano/Desktop/images/06042025/21/23/image_06042025_21_23_23_9641.jpg', 2), ('/home/nano/Desktop/images/06042025/21/23/image_06042025_21_23_14_9795.jpg', 2), ('/home/nano/Desktop/images/06042025/21/22/image_06042025_21_23_04_9798.jpg', 2), ('/home/nano/Desktop/images/06042025/21/22/image_06042025_21_22_54_10649.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/21/23/image_06042025_21_23_44_9646.jpg', '/home/nano/Desktop/images/06042025/21/23/image_06042025_21_23_34_10657.jpg', '/home/nano/Desktop/images/06042025/21/23/image_06042025_21_23_23_9641.jpg', '/home/nano/Desktop/images/06042025/21/23/image_06042025_21_23_14_9795.jpg', '/home/nano/Desktop/images/06042025/21/22/image_06042025_21_23_04_9798.jpg', '/home/nano/Desktop/images/06042025/21/22/image_06042025_21_22_54_10649.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/21/23/image_06042025_21_23_44_9646.jpg
/home/nano/Desktop/images/06042025/21/23/image_06042025_21_23_34_10657.jpg
/home/nano/Desktop/images/06042025/21/23/image_06042025_21_23_23_9641.jpg
/home/nano/Desktop/images/06042025/21/23/image_06042025_21_23_14_9795.jpg
/home/nano/Desktop/images/06042025/21/22/image_06042025_21_23_04_9798.jpg
/home/nano/Desktop/images/06042025/21/22/image_06042025_21_22_54_10649.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350187476","1350187425","1350187478","1350187460","1350187430","1350187381"],"photo_ids_order":["1350187381","1350187425","1350187430","1350187460","1350187476","1350187478"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f96225b82daaf7562cdd9924f0a0f2e4.jpg","text":"TemporaryFile(/tmp/multipartBody6644185213671514756asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967473625,"filename":"image_06042025_21_23_04_9798.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/9655f762629df6ebbe661fc1409a56fd.jpg","text":"TemporaryFile(/tmp/multipartBody5987830244891884629asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967473625,"filename":"image_06042025_21_23_34_10657.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/88fdcf317d6b509e6e164fd8b7cd2e5d.jpg","text":"TemporaryFile(/tmp/multipartBody6506647571039957565asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967473625,"filename":"image_06042025_21_22_54_10649.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b4e2706f82cf205cdc6798df98884bab.jpg","text":"TemporaryFile(/tmp/multipartBody7646653737945550715asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967473625,"filename":"image_06042025_21_23_14_9795.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4c74ace5cf3c64b84a1a2974678d340c.jpg","text":"TemporaryFile(/tmp/multipartBody5632895829900421016asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967473625,"filename":"image_06042025_21_23_23_9641.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/78e4106f909954f55cb0f14bb8847d36.jpg","text":"TemporaryFile(/tmp/multipartBody2297129713513741867asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967473625,"filename":"image_06042025_21_23_44_9646.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350187430","file1":"1350187425","file0":"1350187381","file4":"1350187476","file5":"1350187478","file3":"1350187460"},"map_files_photo_id_array":[{"photo_id":"1350187478","filename":"file5"},{"photo_id":"1350187430","filename":"file2"},{"photo_id":"1350187476","filename":"file4"},{"photo_id":"1350187425","filename":"file1"},{"photo_id":"1350187381","filename":"file0"},{"photo_id":"1350187460","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350187476":["hashtag1","hashtag2"]},{"1350187425":["hashtag1","hashtag2"]},{"1350187478":["hashtag1","hashtag2"]},{"1350187460":["hashtag1","hashtag2"]},{"1350187430":["hashtag1","hashtag2"]},{"1350187381":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350187476, 1350187425, 1350187478, 1350187460, 1350187430, 1350187381)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.049046993255615 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 21:24:32.147291
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/21/24/image_06042025_21_24_44_9651.jpg', 2), ('/home/nano/Desktop/images/06042025/21/24/image_06042025_21_24_34_10655.jpg', 2), ('/home/nano/Desktop/images/06042025/21/24/image_06042025_21_24_23_9651.jpg', 2), ('/home/nano/Desktop/images/06042025/21/23/image_06042025_21_23_53_9648.jpg', 2), ('/home/nano/Desktop/images/06042025/19/57/image_06042025_19_57_44_10658.jpg', 2), ('/home/nano/Desktop/images/06042025/19/56/image_06042025_19_56_54_9808.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/21/24/image_06042025_21_24_44_9651.jpg', '/home/nano/Desktop/images/06042025/21/24/image_06042025_21_24_34_10655.jpg', '/home/nano/Desktop/images/06042025/21/24/image_06042025_21_24_23_9651.jpg', '/home/nano/Desktop/images/06042025/21/23/image_06042025_21_23_53_9648.jpg', '/home/nano/Desktop/images/06042025/19/57/image_06042025_19_57_44_10658.jpg', '/home/nano/Desktop/images/06042025/19/56/image_06042025_19_56_54_9808.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/21/24/image_06042025_21_24_44_9651.jpg
/home/nano/Desktop/images/06042025/21/24/image_06042025_21_24_34_10655.jpg
/home/nano/Desktop/images/06042025/21/24/image_06042025_21_24_23_9651.jpg
/home/nano/Desktop/images/06042025/21/23/image_06042025_21_23_53_9648.jpg
/home/nano/Desktop/images/06042025/19/57/image_06042025_19_57_44_10658.jpg
/home/nano/Desktop/images/06042025/19/56/image_06042025_19_56_54_9808.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350187494","1350187506","1350187499","1350187503","1350187487","1350187501"],"photo_ids_order":["1350187487","1350187494","1350187499","1350187501","1350187503","1350187506"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/83bc18f9e38f4ef5fa20c733787229c3.jpg","text":"TemporaryFile(/tmp/multipartBody165006198055263563asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967533700,"filename":"image_06042025_21_24_34_10655.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f99f7ef278e377cfe872dd7a6d1e5cd3.jpg","text":"TemporaryFile(/tmp/multipartBody4164784636966965352asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967533700,"filename":"image_06042025_19_56_54_9808.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ba5fc2372bb38cbe9b2c75b50c3a8bf5.jpg","text":"TemporaryFile(/tmp/multipartBody8751806961013593805asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967533700,"filename":"image_06042025_21_24_23_9651.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/9310a19e3bad8a234c561990f88b3f5e.jpg","text":"TemporaryFile(/tmp/multipartBody5150464931502549166asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967533700,"filename":"image_06042025_19_57_44_10658.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/62aba6d63705f83dd095d837d2e37ca1.jpg","text":"TemporaryFile(/tmp/multipartBody5267489274502472437asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967533700,"filename":"image_06042025_21_24_44_9651.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/974a46ac2d19e566b5cec19e8f46c479.jpg","text":"TemporaryFile(/tmp/multipartBody5498322249932214786asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967533700,"filename":"image_06042025_21_23_53_9648.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350187499","file1":"1350187494","file0":"1350187487","file4":"1350187503","file5":"1350187506","file3":"1350187501"},"map_files_photo_id_array":[{"photo_id":"1350187506","filename":"file5"},{"photo_id":"1350187499","filename":"file2"},{"photo_id":"1350187503","filename":"file4"},{"photo_id":"1350187494","filename":"file1"},{"photo_id":"1350187487","filename":"file0"},{"photo_id":"1350187501","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350187494":["hashtag1","hashtag2"]},{"1350187506":["hashtag1","hashtag2"]},{"1350187499":["hashtag1","hashtag2"]},{"1350187503":["hashtag1","hashtag2"]},{"1350187487":["hashtag1","hashtag2"]},{"1350187501":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350187494, 1350187506, 1350187499, 1350187503, 1350187487, 1350187501)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.78989553451538 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 21:25:32.217272
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/21/25/image_06042025_21_25_44_10750.jpg', 2), ('/home/nano/Desktop/images/06042025/21/25/image_06042025_21_25_33_9744.jpg', 2), ('/home/nano/Desktop/images/06042025/21/25/image_06042025_21_25_24_9742.jpg', 2), ('/home/nano/Desktop/images/06042025/21/25/image_06042025_21_25_14_9769.jpg', 2), ('/home/nano/Desktop/images/06042025/21/24/image_06042025_21_25_04_10769.jpg', 2), ('/home/nano/Desktop/images/06042025/21/24/image_06042025_21_24_53_9740.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/21/25/image_06042025_21_25_44_10750.jpg', '/home/nano/Desktop/images/06042025/21/25/image_06042025_21_25_33_9744.jpg', '/home/nano/Desktop/images/06042025/21/25/image_06042025_21_25_24_9742.jpg', '/home/nano/Desktop/images/06042025/21/25/image_06042025_21_25_14_9769.jpg', '/home/nano/Desktop/images/06042025/21/24/image_06042025_21_25_04_10769.jpg', '/home/nano/Desktop/images/06042025/21/24/image_06042025_21_24_53_9740.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/21/25/image_06042025_21_25_44_10750.jpg
/home/nano/Desktop/images/06042025/21/25/image_06042025_21_25_33_9744.jpg
/home/nano/Desktop/images/06042025/21/25/image_06042025_21_25_24_9742.jpg
/home/nano/Desktop/images/06042025/21/25/image_06042025_21_25_14_9769.jpg
/home/nano/Desktop/images/06042025/21/24/image_06042025_21_25_04_10769.jpg
/home/nano/Desktop/images/06042025/21/24/image_06042025_21_24_53_9740.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350187553","1350187547","1350187637","1350187564","1350187567","1350187621"],"photo_ids_order":["1350187547","1350187553","1350187564","1350187567","1350187621","1350187637"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/0b4749433eafbcb43c3fa6593951564e.jpg","text":"TemporaryFile(/tmp/multipartBody2768149294121994007asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967594011,"filename":"image_06042025_21_25_33_9744.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/7221b023a2072f2122a2b241c21cb921.jpg","text":"TemporaryFile(/tmp/multipartBody6490054662073224252asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967594011,"filename":"image_06042025_21_25_44_10750.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/94e77f0f86377572c86827859b36ec52.jpg","text":"TemporaryFile(/tmp/multipartBody2578071540186998103asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967594011,"filename":"image_06042025_21_24_53_9740.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a594a692fb593bbecf022742b8cdcc2e.jpg","text":"TemporaryFile(/tmp/multipartBody1996054286943974940asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967594011,"filename":"image_06042025_21_25_24_9742.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/6128ca721dba4c4f19131faf7377f210.jpg","text":"TemporaryFile(/tmp/multipartBody3179696233707265171asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967594011,"filename":"image_06042025_21_25_14_9769.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/dc9bda7156ec6ae4a24d3f45c448db37.jpg","text":"TemporaryFile(/tmp/multipartBody8160150653761669052asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967594011,"filename":"image_06042025_21_25_04_10769.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350187564","file1":"1350187553","file0":"1350187547","file4":"1350187621","file5":"1350187637","file3":"1350187567"},"map_files_photo_id_array":[{"photo_id":"1350187637","filename":"file5"},{"photo_id":"1350187564","filename":"file2"},{"photo_id":"1350187621","filename":"file4"},{"photo_id":"1350187553","filename":"file1"},{"photo_id":"1350187547","filename":"file0"},{"photo_id":"1350187567","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350187553":["hashtag1","hashtag2"]},{"1350187547":["hashtag1","hashtag2"]},{"1350187637":["hashtag1","hashtag2"]},{"1350187564":["hashtag1","hashtag2"]},{"1350187567":["hashtag1","hashtag2"]},{"1350187621":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350187553, 1350187547, 1350187637, 1350187564, 1350187567, 1350187621)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.47593688964844 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 21:26:32.315352
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/21/26/image_06042025_21_26_44_10651.jpg', 2), ('/home/nano/Desktop/images/06042025/21/26/image_06042025_21_26_24_9660.jpg', 2), ('/home/nano/Desktop/images/06042025/21/26/image_06042025_21_26_14_10664.jpg', 2), ('/home/nano/Desktop/images/06042025/21/25/image_06042025_21_26_03_9654.jpg', 2), ('/home/nano/Desktop/images/06042025/21/25/image_06042025_21_25_54_9652.jpg', 2), ('/home/nano/Desktop/images/06042025/19/56/image_06042025_19_56_44_9794.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/21/26/image_06042025_21_26_44_10651.jpg', '/home/nano/Desktop/images/06042025/21/26/image_06042025_21_26_24_9660.jpg', '/home/nano/Desktop/images/06042025/21/26/image_06042025_21_26_14_10664.jpg', '/home/nano/Desktop/images/06042025/21/25/image_06042025_21_26_03_9654.jpg', '/home/nano/Desktop/images/06042025/21/25/image_06042025_21_25_54_9652.jpg', '/home/nano/Desktop/images/06042025/19/56/image_06042025_19_56_44_9794.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/21/26/image_06042025_21_26_44_10651.jpg
/home/nano/Desktop/images/06042025/21/26/image_06042025_21_26_24_9660.jpg
/home/nano/Desktop/images/06042025/21/26/image_06042025_21_26_14_10664.jpg
/home/nano/Desktop/images/06042025/21/25/image_06042025_21_26_03_9654.jpg
/home/nano/Desktop/images/06042025/21/25/image_06042025_21_25_54_9652.jpg
/home/nano/Desktop/images/06042025/19/56/image_06042025_19_56_44_9794.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350187746","1350187860","1350187737","1350187885","1350187894","1350187867"],"photo_ids_order":["1350187737","1350187746","1350187860","1350187867","1350187885","1350187894"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/aeeecf6b06138ee3ce0ef095fb1d3683.jpg","text":"TemporaryFile(/tmp/multipartBody6396358935287850811asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967653616,"filename":"image_06042025_21_26_24_9660.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/d42d525f71fb4f9bfc28f8a397ff5d14.jpg","text":"TemporaryFile(/tmp/multipartBody3169612725260764749asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967653616,"filename":"image_06042025_21_26_14_10664.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/085046b49d2a299cf16ee7e8c086c37d.jpg","text":"TemporaryFile(/tmp/multipartBody5814272713537582228asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967653616,"filename":"image_06042025_21_26_44_10651.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/44f761da6678bdc3ae50880bcecc4c21.jpg","text":"TemporaryFile(/tmp/multipartBody2338615001363533746asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967653616,"filename":"image_06042025_21_25_54_9652.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/69d8879a7eb9e94ec2236fdda45868e6.jpg","text":"TemporaryFile(/tmp/multipartBody2130206009912180827asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967653616,"filename":"image_06042025_19_56_44_9794.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/d6c2e70e8b2b938e6b8ee0581e1e7a81.jpg","text":"TemporaryFile(/tmp/multipartBody5631025224195340396asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967653616,"filename":"image_06042025_21_26_03_9654.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350187860","file1":"1350187746","file0":"1350187737","file4":"1350187885","file5":"1350187894","file3":"1350187867"},"map_files_photo_id_array":[{"photo_id":"1350187894","filename":"file5"},{"photo_id":"1350187860","filename":"file2"},{"photo_id":"1350187885","filename":"file4"},{"photo_id":"1350187746","filename":"file1"},{"photo_id":"1350187737","filename":"file0"},{"photo_id":"1350187867","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350187746":["hashtag1","hashtag2"]},{"1350187860":["hashtag1","hashtag2"]},{"1350187737":["hashtag1","hashtag2"]},{"1350187885":["hashtag1","hashtag2"]},{"1350187894":["hashtag1","hashtag2"]},{"1350187867":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350187746, 1350187860, 1350187737, 1350187885, 1350187894, 1350187867)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.686007738113403 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 21:27:32.413032
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/21/27/image_06042025_21_27_44_10649.jpg', 2), ('/home/nano/Desktop/images/06042025/21/27/image_06042025_21_27_33_9632.jpg', 2), ('/home/nano/Desktop/images/06042025/21/27/image_06042025_21_27_24_9631.jpg', 2), ('/home/nano/Desktop/images/06042025/21/27/image_06042025_21_27_14_10659.jpg', 2), ('/home/nano/Desktop/images/06042025/21/26/image_06042025_21_27_03_9659.jpg', 2), ('/home/nano/Desktop/images/06042025/21/26/image_06042025_21_26_54_9644.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/21/27/image_06042025_21_27_44_10649.jpg', '/home/nano/Desktop/images/06042025/21/27/image_06042025_21_27_33_9632.jpg', '/home/nano/Desktop/images/06042025/21/27/image_06042025_21_27_24_9631.jpg', '/home/nano/Desktop/images/06042025/21/27/image_06042025_21_27_14_10659.jpg', '/home/nano/Desktop/images/06042025/21/26/image_06042025_21_27_03_9659.jpg', '/home/nano/Desktop/images/06042025/21/26/image_06042025_21_26_54_9644.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/21/27/image_06042025_21_27_44_10649.jpg
/home/nano/Desktop/images/06042025/21/27/image_06042025_21_27_33_9632.jpg
/home/nano/Desktop/images/06042025/21/27/image_06042025_21_27_24_9631.jpg
/home/nano/Desktop/images/06042025/21/27/image_06042025_21_27_14_10659.jpg
/home/nano/Desktop/images/06042025/21/26/image_06042025_21_27_03_9659.jpg
/home/nano/Desktop/images/06042025/21/26/image_06042025_21_26_54_9644.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350188031","1350188028","1350188060","1350188057","1350188051","1350188047"],"photo_ids_order":["1350188028","1350188031","1350188047","1350188051","1350188057","1350188060"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/82ded307f4669212ec7bae816f4a5451.jpg","text":"TemporaryFile(/tmp/multipartBody4105899083731000568asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967714056,"filename":"image_06042025_21_27_33_9632.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f7c2ac95ab32a958401a17b165cf1ea4.jpg","text":"TemporaryFile(/tmp/multipartBody2538419378557891319asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967714056,"filename":"image_06042025_21_27_44_10649.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a7156ade7480b4fde159ebb7d1195e07.jpg","text":"TemporaryFile(/tmp/multipartBody4416572853276273756asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967714056,"filename":"image_06042025_21_26_54_9644.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4c772ac21eda474019cd8268a23b5ac0.jpg","text":"TemporaryFile(/tmp/multipartBody5208556196626095877asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967714056,"filename":"image_06042025_21_27_03_9659.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4abaa579754009f0bf1645ee4f5b6643.jpg","text":"TemporaryFile(/tmp/multipartBody8621087848525575044asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967714056,"filename":"image_06042025_21_27_14_10659.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/183d009fe19ce05b49f4fcbd67f7cfb2.jpg","text":"TemporaryFile(/tmp/multipartBody5117997095738874048asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967714056,"filename":"image_06042025_21_27_24_9631.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350188047","file1":"1350188031","file0":"1350188028","file4":"1350188057","file5":"1350188060","file3":"1350188051"},"map_files_photo_id_array":[{"photo_id":"1350188060","filename":"file5"},{"photo_id":"1350188047","filename":"file2"},{"photo_id":"1350188057","filename":"file4"},{"photo_id":"1350188031","filename":"file1"},{"photo_id":"1350188028","filename":"file0"},{"photo_id":"1350188051","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350188031":["hashtag1","hashtag2"]},{"1350188028":["hashtag1","hashtag2"]},{"1350188060":["hashtag1","hashtag2"]},{"1350188057":["hashtag1","hashtag2"]},{"1350188051":["hashtag1","hashtag2"]},{"1350188047":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350188031, 1350188028, 1350188060, 1350188057, 1350188051, 1350188047)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.857927799224854 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 21:28:32.531568
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/21/28/image_06042025_21_28_43_9819.jpg', 2), ('/home/nano/Desktop/images/06042025/21/28/image_06042025_21_28_34_9822.jpg', 2), ('/home/nano/Desktop/images/06042025/21/28/image_06042025_21_28_24_9796.jpg', 2), ('/home/nano/Desktop/images/06042025/21/28/image_06042025_21_28_14_9823.jpg', 2), ('/home/nano/Desktop/images/06042025/21/27/image_06042025_21_28_04_10656.jpg', 2), ('/home/nano/Desktop/images/06042025/21/27/image_06042025_21_27_54_9654.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/21/28/image_06042025_21_28_43_9819.jpg', '/home/nano/Desktop/images/06042025/21/28/image_06042025_21_28_34_9822.jpg', '/home/nano/Desktop/images/06042025/21/28/image_06042025_21_28_24_9796.jpg', '/home/nano/Desktop/images/06042025/21/28/image_06042025_21_28_14_9823.jpg', '/home/nano/Desktop/images/06042025/21/27/image_06042025_21_28_04_10656.jpg', '/home/nano/Desktop/images/06042025/21/27/image_06042025_21_27_54_9654.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/21/28/image_06042025_21_28_43_9819.jpg
/home/nano/Desktop/images/06042025/21/28/image_06042025_21_28_34_9822.jpg
/home/nano/Desktop/images/06042025/21/28/image_06042025_21_28_24_9796.jpg
/home/nano/Desktop/images/06042025/21/28/image_06042025_21_28_14_9823.jpg
/home/nano/Desktop/images/06042025/21/27/image_06042025_21_28_04_10656.jpg
/home/nano/Desktop/images/06042025/21/27/image_06042025_21_27_54_9654.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350188390","1350188510","1350188482","1350188496","1350188515","1350188475"],"photo_ids_order":["1350188390","1350188475","1350188482","1350188496","1350188510","1350188515"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/d986d6e3e3c1cef322b6dcb9119d659b.jpg","text":"TemporaryFile(/tmp/multipartBody3432409359035962830asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967774601,"filename":"image_06042025_21_28_43_9819.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a95cd0968739cc217f9f02b28b7ae509.jpg","text":"TemporaryFile(/tmp/multipartBody6185982421028632221asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967774601,"filename":"image_06042025_21_28_04_10656.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/30deede65ac37a31e924a95978ec1e2b.jpg","text":"TemporaryFile(/tmp/multipartBody2157780433947043619asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967774601,"filename":"image_06042025_21_28_24_9796.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f866141fd7546257508c3effa28db6ca.jpg","text":"TemporaryFile(/tmp/multipartBody6578800533067976568asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967774601,"filename":"image_06042025_21_28_14_9823.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/5d2b066f7d2d6aa59acd41d40fc1a6d0.jpg","text":"TemporaryFile(/tmp/multipartBody3701477849444977272asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967774601,"filename":"image_06042025_21_27_54_9654.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/d3a6ef913184655c011770e3dae0a81d.jpg","text":"TemporaryFile(/tmp/multipartBody7053886630849486769asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967774601,"filename":"image_06042025_21_28_34_9822.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350188482","file1":"1350188475","file0":"1350188390","file4":"1350188510","file5":"1350188515","file3":"1350188496"},"map_files_photo_id_array":[{"photo_id":"1350188515","filename":"file5"},{"photo_id":"1350188482","filename":"file2"},{"photo_id":"1350188510","filename":"file4"},{"photo_id":"1350188475","filename":"file1"},{"photo_id":"1350188390","filename":"file0"},{"photo_id":"1350188496","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350188390":["hashtag1","hashtag2"]},{"1350188510":["hashtag1","hashtag2"]},{"1350188482":["hashtag1","hashtag2"]},{"1350188496":["hashtag1","hashtag2"]},{"1350188515":["hashtag1","hashtag2"]},{"1350188475":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350188390, 1350188510, 1350188482, 1350188496, 1350188515, 1350188475)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 36.729154109954834 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 21:29:32.631698
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/21/29/image_06042025_21_29_44_10687.jpg', 2), ('/home/nano/Desktop/images/06042025/21/29/image_06042025_21_29_33_9767.jpg', 2), ('/home/nano/Desktop/images/06042025/21/29/image_06042025_21_29_24_9643.jpg', 2), ('/home/nano/Desktop/images/06042025/21/29/image_06042025_21_29_14_9843.jpg', 2), ('/home/nano/Desktop/images/06042025/21/28/image_06042025_21_29_04_10824.jpg', 2), ('/home/nano/Desktop/images/06042025/21/28/image_06042025_21_28_53_9803.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/21/29/image_06042025_21_29_44_10687.jpg', '/home/nano/Desktop/images/06042025/21/29/image_06042025_21_29_33_9767.jpg', '/home/nano/Desktop/images/06042025/21/29/image_06042025_21_29_24_9643.jpg', '/home/nano/Desktop/images/06042025/21/29/image_06042025_21_29_14_9843.jpg', '/home/nano/Desktop/images/06042025/21/28/image_06042025_21_29_04_10824.jpg', '/home/nano/Desktop/images/06042025/21/28/image_06042025_21_28_53_9803.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/21/29/image_06042025_21_29_44_10687.jpg
/home/nano/Desktop/images/06042025/21/29/image_06042025_21_29_33_9767.jpg
/home/nano/Desktop/images/06042025/21/29/image_06042025_21_29_24_9643.jpg
/home/nano/Desktop/images/06042025/21/29/image_06042025_21_29_14_9843.jpg
/home/nano/Desktop/images/06042025/21/28/image_06042025_21_29_04_10824.jpg
/home/nano/Desktop/images/06042025/21/28/image_06042025_21_28_53_9803.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350188535","1350188544","1350188531","1350188540","1350188528","1350188550"],"photo_ids_order":["1350188528","1350188531","1350188535","1350188540","1350188544","1350188550"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e679eca6f65400d5829967c71dc375c7.jpg","text":"TemporaryFile(/tmp/multipartBody4898180204848070778asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967834738,"filename":"image_06042025_21_29_24_9643.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c89f5b7d8c786d850be8fb78edad8227.jpg","text":"TemporaryFile(/tmp/multipartBody5429909355811932540asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967834738,"filename":"image_06042025_21_29_04_10824.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/3c79ec23530a614e660dfbb44cb92f28.jpg","text":"TemporaryFile(/tmp/multipartBody8931698245465316003asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967834738,"filename":"image_06042025_21_29_33_9767.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4b8ccde1864f435a15afe6bb408acc53.jpg","text":"TemporaryFile(/tmp/multipartBody416100537180102928asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967834738,"filename":"image_06042025_21_29_14_9843.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a66fa7bbe85a03212823349d9f704c32.jpg","text":"TemporaryFile(/tmp/multipartBody2317192772318638453asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967834738,"filename":"image_06042025_21_29_44_10687.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f106f155e3cb9dd459ba4ffe59094f96.jpg","text":"TemporaryFile(/tmp/multipartBody8670736705945087933asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967834738,"filename":"image_06042025_21_28_53_9803.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350188535","file1":"1350188531","file0":"1350188528","file4":"1350188544","file5":"1350188550","file3":"1350188540"},"map_files_photo_id_array":[{"photo_id":"1350188550","filename":"file5"},{"photo_id":"1350188535","filename":"file2"},{"photo_id":"1350188544","filename":"file4"},{"photo_id":"1350188531","filename":"file1"},{"photo_id":"1350188528","filename":"file0"},{"photo_id":"1350188540","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350188535":["hashtag1","hashtag2"]},{"1350188544":["hashtag1","hashtag2"]},{"1350188531":["hashtag1","hashtag2"]},{"1350188540":["hashtag1","hashtag2"]},{"1350188528":["hashtag1","hashtag2"]},{"1350188550":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350188535, 1350188544, 1350188531, 1350188540, 1350188528, 1350188550)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.96507167816162 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 21:30:32.714167
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/21/30/image_06042025_21_30_44_10649.jpg', 2), ('/home/nano/Desktop/images/06042025/21/30/image_06042025_21_30_33_9636.jpg', 2), ('/home/nano/Desktop/images/06042025/21/30/image_06042025_21_30_24_9645.jpg', 2), ('/home/nano/Desktop/images/06042025/21/30/image_06042025_21_30_14_10666.jpg', 2), ('/home/nano/Desktop/images/06042025/21/29/image_06042025_21_30_03_9647.jpg', 2), ('/home/nano/Desktop/images/06042025/21/29/image_06042025_21_29_54_9636.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/21/30/image_06042025_21_30_44_10649.jpg', '/home/nano/Desktop/images/06042025/21/30/image_06042025_21_30_33_9636.jpg', '/home/nano/Desktop/images/06042025/21/30/image_06042025_21_30_24_9645.jpg', '/home/nano/Desktop/images/06042025/21/30/image_06042025_21_30_14_10666.jpg', '/home/nano/Desktop/images/06042025/21/29/image_06042025_21_30_03_9647.jpg', '/home/nano/Desktop/images/06042025/21/29/image_06042025_21_29_54_9636.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/21/30/image_06042025_21_30_44_10649.jpg
/home/nano/Desktop/images/06042025/21/30/image_06042025_21_30_33_9636.jpg
/home/nano/Desktop/images/06042025/21/30/image_06042025_21_30_24_9645.jpg
/home/nano/Desktop/images/06042025/21/30/image_06042025_21_30_14_10666.jpg
/home/nano/Desktop/images/06042025/21/29/image_06042025_21_30_03_9647.jpg
/home/nano/Desktop/images/06042025/21/29/image_06042025_21_29_54_9636.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350188692","1350188665","1350188674","1350188682","1350188670","1350188667"],"photo_ids_order":["1350188665","1350188667","1350188670","1350188674","1350188682","1350188692"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/5479e0229dd5b66135078d5ccbb591f7.jpg","text":"TemporaryFile(/tmp/multipartBody5052579492179147695asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967894399,"filename":"image_06042025_21_29_54_9636.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/1fc466dd442485dcf584534881abbd57.jpg","text":"TemporaryFile(/tmp/multipartBody8994143112422536667asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967894399,"filename":"image_06042025_21_30_44_10649.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ace55068f6228fab4b8be99e1e6346d8.jpg","text":"TemporaryFile(/tmp/multipartBody3596629722861014787asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967894399,"filename":"image_06042025_21_30_14_10666.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a3a6ca1090617609ddb0093d6ac2d267.jpg","text":"TemporaryFile(/tmp/multipartBody1211156619261378328asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967894399,"filename":"image_06042025_21_30_03_9647.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a4af8dd78d8d47a068d507d7148ee17f.jpg","text":"TemporaryFile(/tmp/multipartBody2925282536361809510asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967894399,"filename":"image_06042025_21_30_24_9645.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/dc36b143237388a511e0f7d5ae9984cb.jpg","text":"TemporaryFile(/tmp/multipartBody4523295108926505483asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967894399,"filename":"image_06042025_21_30_33_9636.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350188670","file1":"1350188667","file0":"1350188665","file4":"1350188682","file5":"1350188692","file3":"1350188674"},"map_files_photo_id_array":[{"photo_id":"1350188692","filename":"file5"},{"photo_id":"1350188670","filename":"file2"},{"photo_id":"1350188682","filename":"file4"},{"photo_id":"1350188667","filename":"file1"},{"photo_id":"1350188665","filename":"file0"},{"photo_id":"1350188674","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350188692":["hashtag1","hashtag2"]},{"1350188665":["hashtag1","hashtag2"]},{"1350188674":["hashtag1","hashtag2"]},{"1350188682":["hashtag1","hashtag2"]},{"1350188670":["hashtag1","hashtag2"]},{"1350188667":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350188692, 1350188665, 1350188674, 1350188682, 1350188670, 1350188667)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.79027795791626 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 21:31:31.815291
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/21/31/image_06042025_21_31_44_9634.jpg', 2), ('/home/nano/Desktop/images/06042025/21/31/image_06042025_21_31_23_9639.jpg', 2), ('/home/nano/Desktop/images/06042025/21/31/image_06042025_21_31_14_10662.jpg', 2), ('/home/nano/Desktop/images/06042025/21/30/image_06042025_21_31_03_9639.jpg', 2), ('/home/nano/Desktop/images/06042025/21/30/image_06042025_21_30_54_9638.jpg', 2), ('/home/nano/Desktop/images/06042025/19/56/image_06042025_19_56_34_10819.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/21/31/image_06042025_21_31_44_9634.jpg', '/home/nano/Desktop/images/06042025/21/31/image_06042025_21_31_23_9639.jpg', '/home/nano/Desktop/images/06042025/21/31/image_06042025_21_31_14_10662.jpg', '/home/nano/Desktop/images/06042025/21/30/image_06042025_21_31_03_9639.jpg', '/home/nano/Desktop/images/06042025/21/30/image_06042025_21_30_54_9638.jpg', '/home/nano/Desktop/images/06042025/19/56/image_06042025_19_56_34_10819.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/21/31/image_06042025_21_31_44_9634.jpg
/home/nano/Desktop/images/06042025/21/31/image_06042025_21_31_23_9639.jpg
/home/nano/Desktop/images/06042025/21/31/image_06042025_21_31_14_10662.jpg
/home/nano/Desktop/images/06042025/21/30/image_06042025_21_31_03_9639.jpg
/home/nano/Desktop/images/06042025/21/30/image_06042025_21_30_54_9638.jpg
/home/nano/Desktop/images/06042025/19/56/image_06042025_19_56_34_10819.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350188727","1350188715","1350188718","1350188723","1350188711","1350188731"],"photo_ids_order":["1350188711","1350188715","1350188718","1350188723","1350188727","1350188731"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/5a048dde53c956051195d894b9cf22cf.jpg","text":"TemporaryFile(/tmp/multipartBody5053322781608236197asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967953351,"filename":"image_06042025_21_30_54_9638.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/02dc59a595cb127d45826f2094cee3fc.jpg","text":"TemporaryFile(/tmp/multipartBody4130201178247370213asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967953351,"filename":"image_06042025_21_31_23_9639.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4aea1bf61603a078f8dacc98a7c6037a.jpg","text":"TemporaryFile(/tmp/multipartBody2673421855158702840asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967953351,"filename":"image_06042025_21_31_14_10662.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/7e1c551edd55ff4f5ed7cc2a6542bc6e.jpg","text":"TemporaryFile(/tmp/multipartBody1746902299205229519asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967953351,"filename":"image_06042025_21_31_03_9639.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/7c36804531d44fe9013935ac6352e0db.jpg","text":"TemporaryFile(/tmp/multipartBody6981883299559899305asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967953351,"filename":"image_06042025_21_31_44_9634.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/569f08a2f5bbe58bfd9d8ec251cfb410.jpg","text":"TemporaryFile(/tmp/multipartBody4502827775867534668asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743967953351,"filename":"image_06042025_19_56_34_10819.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350188718","file1":"1350188715","file0":"1350188711","file4":"1350188727","file5":"1350188731","file3":"1350188723"},"map_files_photo_id_array":[{"photo_id":"1350188731","filename":"file5"},{"photo_id":"1350188718","filename":"file2"},{"photo_id":"1350188727","filename":"file4"},{"photo_id":"1350188715","filename":"file1"},{"photo_id":"1350188711","filename":"file0"},{"photo_id":"1350188723","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350188727":["hashtag1","hashtag2"]},{"1350188715":["hashtag1","hashtag2"]},{"1350188718":["hashtag1","hashtag2"]},{"1350188723":["hashtag1","hashtag2"]},{"1350188711":["hashtag1","hashtag2"]},{"1350188731":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350188727, 1350188715, 1350188718, 1350188723, 1350188711, 1350188731)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.22170042991638 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 21:32:31.958774
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/21/32/image_06042025_21_32_44_10644.jpg', 2), ('/home/nano/Desktop/images/06042025/21/32/image_06042025_21_32_33_9649.jpg', 2), ('/home/nano/Desktop/images/06042025/21/32/image_06042025_21_32_24_9636.jpg', 2), ('/home/nano/Desktop/images/06042025/21/32/image_06042025_21_32_14_10666.jpg', 2), ('/home/nano/Desktop/images/06042025/21/31/image_06042025_21_32_03_9826.jpg', 2), ('/home/nano/Desktop/images/06042025/21/31/image_06042025_21_31_53_9634.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/21/32/image_06042025_21_32_44_10644.jpg', '/home/nano/Desktop/images/06042025/21/32/image_06042025_21_32_33_9649.jpg', '/home/nano/Desktop/images/06042025/21/32/image_06042025_21_32_24_9636.jpg', '/home/nano/Desktop/images/06042025/21/32/image_06042025_21_32_14_10666.jpg', '/home/nano/Desktop/images/06042025/21/31/image_06042025_21_32_03_9826.jpg', '/home/nano/Desktop/images/06042025/21/31/image_06042025_21_31_53_9634.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/21/32/image_06042025_21_32_44_10644.jpg
/home/nano/Desktop/images/06042025/21/32/image_06042025_21_32_33_9649.jpg
/home/nano/Desktop/images/06042025/21/32/image_06042025_21_32_24_9636.jpg
/home/nano/Desktop/images/06042025/21/32/image_06042025_21_32_14_10666.jpg
/home/nano/Desktop/images/06042025/21/31/image_06042025_21_32_03_9826.jpg
/home/nano/Desktop/images/06042025/21/31/image_06042025_21_31_53_9634.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350188759","1350188752","1350188746","1350188761","1350188755","1350188749"],"photo_ids_order":["1350188746","1350188749","1350188752","1350188755","1350188759","1350188761"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/af00ff3352135f3bd5acb5d648e7b152.jpg","text":"TemporaryFile(/tmp/multipartBody4964988707509064343asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968013078,"filename":"image_06042025_21_32_03_9826.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/677bda158090de849c497828dd8a2891.jpg","text":"TemporaryFile(/tmp/multipartBody6917012501568180442asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968013078,"filename":"image_06042025_21_32_24_9636.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/22968ce6702932400b41c54d592b5d49.jpg","text":"TemporaryFile(/tmp/multipartBody7521438388489340685asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968013078,"filename":"image_06042025_21_32_44_10644.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/1635f17a1b913847d235633bde0586b6.jpg","text":"TemporaryFile(/tmp/multipartBody6516418787391772758asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968013078,"filename":"image_06042025_21_31_53_9634.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/0774f01b81b2b105da63593c972769fb.jpg","text":"TemporaryFile(/tmp/multipartBody2955705932800240287asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968013078,"filename":"image_06042025_21_32_14_10666.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/bf659fb214eb7e60f1ee5c4d54825589.jpg","text":"TemporaryFile(/tmp/multipartBody2855648378804240941asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968013078,"filename":"image_06042025_21_32_33_9649.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350188752","file1":"1350188749","file0":"1350188746","file4":"1350188759","file5":"1350188761","file3":"1350188755"},"map_files_photo_id_array":[{"photo_id":"1350188761","filename":"file5"},{"photo_id":"1350188752","filename":"file2"},{"photo_id":"1350188759","filename":"file4"},{"photo_id":"1350188749","filename":"file1"},{"photo_id":"1350188746","filename":"file0"},{"photo_id":"1350188755","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350188759":["hashtag1","hashtag2"]},{"1350188752":["hashtag1","hashtag2"]},{"1350188746":["hashtag1","hashtag2"]},{"1350188761":["hashtag1","hashtag2"]},{"1350188755":["hashtag1","hashtag2"]},{"1350188749":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350188759, 1350188752, 1350188746, 1350188761, 1350188755, 1350188749)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.55004596710205 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 21:33:32.062467
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/21/33/image_06042025_21_33_53_9647.jpg', 2), ('/home/nano/Desktop/images/06042025/21/33/image_06042025_21_33_23_9644.jpg', 2), ('/home/nano/Desktop/images/06042025/21/33/image_06042025_21_33_14_9667.jpg', 2), ('/home/nano/Desktop/images/06042025/21/32/image_06042025_21_33_04_10674.jpg', 2), ('/home/nano/Desktop/images/06042025/21/32/image_06042025_21_32_53_9635.jpg', 2), ('/home/nano/Desktop/images/06042025/19/56/image_06042025_19_56_23_9806.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/21/33/image_06042025_21_33_53_9647.jpg', '/home/nano/Desktop/images/06042025/21/33/image_06042025_21_33_23_9644.jpg', '/home/nano/Desktop/images/06042025/21/33/image_06042025_21_33_14_9667.jpg', '/home/nano/Desktop/images/06042025/21/32/image_06042025_21_33_04_10674.jpg', '/home/nano/Desktop/images/06042025/21/32/image_06042025_21_32_53_9635.jpg', '/home/nano/Desktop/images/06042025/19/56/image_06042025_19_56_23_9806.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/21/33/image_06042025_21_33_53_9647.jpg
/home/nano/Desktop/images/06042025/21/33/image_06042025_21_33_23_9644.jpg
/home/nano/Desktop/images/06042025/21/33/image_06042025_21_33_14_9667.jpg
/home/nano/Desktop/images/06042025/21/32/image_06042025_21_33_04_10674.jpg
/home/nano/Desktop/images/06042025/21/32/image_06042025_21_32_53_9635.jpg
/home/nano/Desktop/images/06042025/19/56/image_06042025_19_56_23_9806.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350188849","1350188813","1350188788","1350188818","1350188796","1350188838"],"photo_ids_order":["1350188788","1350188796","1350188813","1350188818","1350188838","1350188849"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/78766e62014adbb1d2eaed793fa62cd3.jpg","text":"TemporaryFile(/tmp/multipartBody3499784134808059371asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968073908,"filename":"image_06042025_19_56_23_9806.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/84f10804c4bb67babbde8a8bf7e2a34c.jpg","text":"TemporaryFile(/tmp/multipartBody2970132080706510813asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968073908,"filename":"image_06042025_21_33_14_9667.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/8abbc3774a254fcaa0c667b1965b9c72.jpg","text":"TemporaryFile(/tmp/multipartBody3540000230234665965asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968073908,"filename":"image_06042025_21_33_53_9647.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ddc65278ef68a5e8a113f1d86ab43387.jpg","text":"TemporaryFile(/tmp/multipartBody3263978133032786416asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968073908,"filename":"image_06042025_21_33_04_10674.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/6254a9614831a45f3263bee93b1aec65.jpg","text":"TemporaryFile(/tmp/multipartBody721728012968811003asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968073908,"filename":"image_06042025_21_33_23_9644.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ecdfabe8363a83e2ecd941bd1894c7fb.jpg","text":"TemporaryFile(/tmp/multipartBody5040758799737242737asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968073908,"filename":"image_06042025_21_32_53_9635.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350188813","file1":"1350188796","file0":"1350188788","file4":"1350188838","file5":"1350188849","file3":"1350188818"},"map_files_photo_id_array":[{"photo_id":"1350188849","filename":"file5"},{"photo_id":"1350188813","filename":"file2"},{"photo_id":"1350188838","filename":"file4"},{"photo_id":"1350188796","filename":"file1"},{"photo_id":"1350188788","filename":"file0"},{"photo_id":"1350188818","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350188849":["hashtag1","hashtag2"]},{"1350188813":["hashtag1","hashtag2"]},{"1350188788":["hashtag1","hashtag2"]},{"1350188818":["hashtag1","hashtag2"]},{"1350188796":["hashtag1","hashtag2"]},{"1350188838":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350188849, 1350188813, 1350188788, 1350188818, 1350188796, 1350188838)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 41.358232259750366 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 21:34:32.168231
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/21/34/image_06042025_21_34_44_9648.jpg', 2), ('/home/nano/Desktop/images/06042025/21/34/image_06042025_21_34_34_10659.jpg', 2), ('/home/nano/Desktop/images/06042025/21/34/image_06042025_21_34_23_9646.jpg', 2), ('/home/nano/Desktop/images/06042025/21/34/image_06042025_21_34_14_9663.jpg', 2), ('/home/nano/Desktop/images/06042025/21/33/image_06042025_21_34_04_10665.jpg', 2), ('/home/nano/Desktop/images/06042025/21/33/image_06042025_21_33_34_10656.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/21/34/image_06042025_21_34_44_9648.jpg', '/home/nano/Desktop/images/06042025/21/34/image_06042025_21_34_34_10659.jpg', '/home/nano/Desktop/images/06042025/21/34/image_06042025_21_34_23_9646.jpg', '/home/nano/Desktop/images/06042025/21/34/image_06042025_21_34_14_9663.jpg', '/home/nano/Desktop/images/06042025/21/33/image_06042025_21_34_04_10665.jpg', '/home/nano/Desktop/images/06042025/21/33/image_06042025_21_33_34_10656.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/21/34/image_06042025_21_34_44_9648.jpg
/home/nano/Desktop/images/06042025/21/34/image_06042025_21_34_34_10659.jpg
/home/nano/Desktop/images/06042025/21/34/image_06042025_21_34_23_9646.jpg
/home/nano/Desktop/images/06042025/21/34/image_06042025_21_34_14_9663.jpg
/home/nano/Desktop/images/06042025/21/33/image_06042025_21_34_04_10665.jpg
/home/nano/Desktop/images/06042025/21/33/image_06042025_21_33_34_10656.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350188885","1350188888","1350188896","1350188892","1350188880","1350188898"],"photo_ids_order":["1350188880","1350188885","1350188888","1350188892","1350188896","1350188898"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c79e52ecbba6e15e38b79ef92cb8f41c.jpg","text":"TemporaryFile(/tmp/multipartBody3666391596051980485asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968133878,"filename":"image_06042025_21_34_34_10659.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c29c156b40092ad9edbf31b54e5421ff.jpg","text":"TemporaryFile(/tmp/multipartBody9061244581115823502asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968133878,"filename":"image_06042025_21_34_23_9646.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/8a8b67f31fdfddb6c4d0b1186d15f864.jpg","text":"TemporaryFile(/tmp/multipartBody1916881132796318353asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968133878,"filename":"image_06042025_21_34_04_10665.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/2d3b126b1352ee77fa0e44ddfede0c6c.jpg","text":"TemporaryFile(/tmp/multipartBody5407654405074358995asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968133878,"filename":"image_06042025_21_34_14_9663.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b5bf61c0d9e7d97d6e01077fbe32c485.jpg","text":"TemporaryFile(/tmp/multipartBody6337698782974397343asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968133878,"filename":"image_06042025_21_34_44_9648.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/3052aed70a62630b6e354f0d856de951.jpg","text":"TemporaryFile(/tmp/multipartBody2317530297538990987asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968133878,"filename":"image_06042025_21_33_34_10656.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350188888","file1":"1350188885","file0":"1350188880","file4":"1350188896","file5":"1350188898","file3":"1350188892"},"map_files_photo_id_array":[{"photo_id":"1350188898","filename":"file5"},{"photo_id":"1350188888","filename":"file2"},{"photo_id":"1350188896","filename":"file4"},{"photo_id":"1350188885","filename":"file1"},{"photo_id":"1350188880","filename":"file0"},{"photo_id":"1350188892","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350188885":["hashtag1","hashtag2"]},{"1350188888":["hashtag1","hashtag2"]},{"1350188896":["hashtag1","hashtag2"]},{"1350188892":["hashtag1","hashtag2"]},{"1350188880":["hashtag1","hashtag2"]},{"1350188898":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350188885, 1350188888, 1350188896, 1350188892, 1350188880, 1350188898)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.4304678440094 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 21:35:32.249456
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/21/35/image_06042025_21_35_44_9748.jpg', 2), ('/home/nano/Desktop/images/06042025/21/35/image_06042025_21_35_34_10640.jpg', 2), ('/home/nano/Desktop/images/06042025/21/35/image_06042025_21_35_23_9630.jpg', 2), ('/home/nano/Desktop/images/06042025/21/34/image_06042025_21_35_04_10655.jpg', 2), ('/home/nano/Desktop/images/06042025/21/34/image_06042025_21_34_53_9649.jpg', 2), ('/home/nano/Desktop/images/06042025/19/56/image_06042025_19_56_13_9829.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/21/35/image_06042025_21_35_44_9748.jpg', '/home/nano/Desktop/images/06042025/21/35/image_06042025_21_35_34_10640.jpg', '/home/nano/Desktop/images/06042025/21/35/image_06042025_21_35_23_9630.jpg', '/home/nano/Desktop/images/06042025/21/34/image_06042025_21_35_04_10655.jpg', '/home/nano/Desktop/images/06042025/21/34/image_06042025_21_34_53_9649.jpg', '/home/nano/Desktop/images/06042025/19/56/image_06042025_19_56_13_9829.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/21/35/image_06042025_21_35_44_9748.jpg
/home/nano/Desktop/images/06042025/21/35/image_06042025_21_35_34_10640.jpg
/home/nano/Desktop/images/06042025/21/35/image_06042025_21_35_23_9630.jpg
/home/nano/Desktop/images/06042025/21/34/image_06042025_21_35_04_10655.jpg
/home/nano/Desktop/images/06042025/21/34/image_06042025_21_34_53_9649.jpg
/home/nano/Desktop/images/06042025/19/56/image_06042025_19_56_13_9829.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350188919","1350188913","1350188916","1350188930","1350188909","1350188922"],"photo_ids_order":["1350188909","1350188913","1350188916","1350188919","1350188922","1350188930"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f3d874e715bda32c314431cc6e7aacc1.jpg","text":"TemporaryFile(/tmp/multipartBody2000005722673498384asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968194082,"filename":"image_06042025_21_35_04_10655.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/48d747023c1ed73ad13379ed35cba7f8.jpg","text":"TemporaryFile(/tmp/multipartBody7275167948914349324asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968194082,"filename":"image_06042025_21_35_34_10640.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/9d5c20d935e31d9f14db0a0b5c48ac78.jpg","text":"TemporaryFile(/tmp/multipartBody5716419144024957555asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968194082,"filename":"image_06042025_21_35_23_9630.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/d655c1ca682f3b735b002b99943145c7.jpg","text":"TemporaryFile(/tmp/multipartBody2650955491973341516asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968194082,"filename":"image_06042025_19_56_13_9829.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/7838a30b236879164824923c46734e11.jpg","text":"TemporaryFile(/tmp/multipartBody5673366538876610393asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968194082,"filename":"image_06042025_21_35_44_9748.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/68a5beccc6d4b997759dd7a5d3557904.jpg","text":"TemporaryFile(/tmp/multipartBody4388651195826583765asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968194082,"filename":"image_06042025_21_34_53_9649.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350188916","file1":"1350188913","file0":"1350188909","file4":"1350188922","file5":"1350188930","file3":"1350188919"},"map_files_photo_id_array":[{"photo_id":"1350188930","filename":"file5"},{"photo_id":"1350188916","filename":"file2"},{"photo_id":"1350188922","filename":"file4"},{"photo_id":"1350188913","filename":"file1"},{"photo_id":"1350188909","filename":"file0"},{"photo_id":"1350188919","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350188919":["hashtag1","hashtag2"]},{"1350188913":["hashtag1","hashtag2"]},{"1350188916":["hashtag1","hashtag2"]},{"1350188930":["hashtag1","hashtag2"]},{"1350188909":["hashtag1","hashtag2"]},{"1350188922":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350188919, 1350188913, 1350188916, 1350188930, 1350188909, 1350188922)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.240992307662964 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 21:36:32.344814
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/21/36/image_06042025_21_36_44_10813.jpg', 2), ('/home/nano/Desktop/images/06042025/21/36/image_06042025_21_36_33_9803.jpg', 2), ('/home/nano/Desktop/images/06042025/21/36/image_06042025_21_36_23_9806.jpg', 2), ('/home/nano/Desktop/images/06042025/21/36/image_06042025_21_36_14_9665.jpg', 2), ('/home/nano/Desktop/images/06042025/21/35/image_06042025_21_35_53_9643.jpg', 2), ('/home/nano/Desktop/images/06042025/19/55/image_06042025_19_56_04_9801.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/21/36/image_06042025_21_36_44_10813.jpg', '/home/nano/Desktop/images/06042025/21/36/image_06042025_21_36_33_9803.jpg', '/home/nano/Desktop/images/06042025/21/36/image_06042025_21_36_23_9806.jpg', '/home/nano/Desktop/images/06042025/21/36/image_06042025_21_36_14_9665.jpg', '/home/nano/Desktop/images/06042025/21/35/image_06042025_21_35_53_9643.jpg', '/home/nano/Desktop/images/06042025/19/55/image_06042025_19_56_04_9801.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/21/36/image_06042025_21_36_44_10813.jpg
/home/nano/Desktop/images/06042025/21/36/image_06042025_21_36_33_9803.jpg
/home/nano/Desktop/images/06042025/21/36/image_06042025_21_36_23_9806.jpg
/home/nano/Desktop/images/06042025/21/36/image_06042025_21_36_14_9665.jpg
/home/nano/Desktop/images/06042025/21/35/image_06042025_21_35_53_9643.jpg
/home/nano/Desktop/images/06042025/19/55/image_06042025_19_56_04_9801.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350189098","1350188966","1350188969","1350188977","1350189049","1350189118"],"photo_ids_order":["1350188966","1350188969","1350188977","1350189049","1350189098","1350189118"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e4da4ffc535f9b15d12454da6ba3732e.jpg","text":"TemporaryFile(/tmp/multipartBody6538427763675611055asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968254281,"filename":"image_06042025_21_35_53_9643.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/dc95da0d087f97a8fcd1cf60f3792dd5.jpg","text":"TemporaryFile(/tmp/multipartBody6182482895998831265asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968254281,"filename":"image_06042025_21_36_44_10813.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c6c180447e70564d27a2d949163394f3.jpg","text":"TemporaryFile(/tmp/multipartBody1819144467953691573asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968254281,"filename":"image_06042025_21_36_33_9803.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/1b59fce8232d5f9c089e80932770b22d.jpg","text":"TemporaryFile(/tmp/multipartBody6548842099825818867asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968254281,"filename":"image_06042025_21_36_23_9806.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/036dfb7f5a8a581feeba934ebb61453e.jpg","text":"TemporaryFile(/tmp/multipartBody2853440132529876551asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968254281,"filename":"image_06042025_21_36_14_9665.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/82521c0d48badd238f29fa95645c38b3.jpg","text":"TemporaryFile(/tmp/multipartBody3448553069845335776asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968254281,"filename":"image_06042025_19_56_04_9801.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350188977","file1":"1350188969","file0":"1350188966","file4":"1350189098","file5":"1350189118","file3":"1350189049"},"map_files_photo_id_array":[{"photo_id":"1350189118","filename":"file5"},{"photo_id":"1350188977","filename":"file2"},{"photo_id":"1350189098","filename":"file4"},{"photo_id":"1350188969","filename":"file1"},{"photo_id":"1350188966","filename":"file0"},{"photo_id":"1350189049","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350189098":["hashtag1","hashtag2"]},{"1350188966":["hashtag1","hashtag2"]},{"1350188969":["hashtag1","hashtag2"]},{"1350188977":["hashtag1","hashtag2"]},{"1350189049":["hashtag1","hashtag2"]},{"1350189118":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350189098, 1350188966, 1350188969, 1350188977, 1350189049, 1350189118)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.71621322631836 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 21:37:32.437251
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/21/37/image_06042025_21_37_44_9820.jpg', 2), ('/home/nano/Desktop/images/06042025/21/37/image_06042025_21_37_34_10812.jpg', 2), ('/home/nano/Desktop/images/06042025/21/37/image_06042025_21_37_23_9804.jpg', 2), ('/home/nano/Desktop/images/06042025/21/37/image_06042025_21_37_14_9848.jpg', 2), ('/home/nano/Desktop/images/06042025/21/36/image_06042025_21_37_04_9808.jpg', 2), ('/home/nano/Desktop/images/06042025/21/36/image_06042025_21_36_54_9822.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/21/37/image_06042025_21_37_44_9820.jpg', '/home/nano/Desktop/images/06042025/21/37/image_06042025_21_37_34_10812.jpg', '/home/nano/Desktop/images/06042025/21/37/image_06042025_21_37_23_9804.jpg', '/home/nano/Desktop/images/06042025/21/37/image_06042025_21_37_14_9848.jpg', '/home/nano/Desktop/images/06042025/21/36/image_06042025_21_37_04_9808.jpg', '/home/nano/Desktop/images/06042025/21/36/image_06042025_21_36_54_9822.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/21/37/image_06042025_21_37_44_9820.jpg
/home/nano/Desktop/images/06042025/21/37/image_06042025_21_37_34_10812.jpg
/home/nano/Desktop/images/06042025/21/37/image_06042025_21_37_23_9804.jpg
/home/nano/Desktop/images/06042025/21/37/image_06042025_21_37_14_9848.jpg
/home/nano/Desktop/images/06042025/21/36/image_06042025_21_37_04_9808.jpg
/home/nano/Desktop/images/06042025/21/36/image_06042025_21_36_54_9822.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350189312","1350189306","1350189260","1350189310","1350189301","1350189315"],"photo_ids_order":["1350189260","1350189301","1350189306","1350189310","1350189312","1350189315"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/46ffbdf5ef60078ba14cb9703a2ff99a.jpg","text":"TemporaryFile(/tmp/multipartBody1779226094473430255asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968314435,"filename":"image_06042025_21_37_04_9808.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4c55ccdd37fe386c0a61a5c34c0ea65d.jpg","text":"TemporaryFile(/tmp/multipartBody1398627994943111529asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968314435,"filename":"image_06042025_21_37_23_9804.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/35036618cbc19b7696b200eb42680b7f.jpg","text":"TemporaryFile(/tmp/multipartBody2256655804083664302asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968314435,"filename":"image_06042025_21_37_44_9820.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/3f5a823b001154ef2c9b9fbf60c8e50a.jpg","text":"TemporaryFile(/tmp/multipartBody915363979497951352asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968314435,"filename":"image_06042025_21_37_14_9848.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/bcff7f803a2dbc7879a20f472f114ecd.jpg","text":"TemporaryFile(/tmp/multipartBody7091377697602420684asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968314435,"filename":"image_06042025_21_37_34_10812.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/9440f2eb70e49396e8e3829935e83f51.jpg","text":"TemporaryFile(/tmp/multipartBody2890864896411622275asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968314435,"filename":"image_06042025_21_36_54_9822.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350189306","file1":"1350189301","file0":"1350189260","file4":"1350189312","file5":"1350189315","file3":"1350189310"},"map_files_photo_id_array":[{"photo_id":"1350189315","filename":"file5"},{"photo_id":"1350189306","filename":"file2"},{"photo_id":"1350189312","filename":"file4"},{"photo_id":"1350189301","filename":"file1"},{"photo_id":"1350189260","filename":"file0"},{"photo_id":"1350189310","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350189312":["hashtag1","hashtag2"]},{"1350189306":["hashtag1","hashtag2"]},{"1350189260":["hashtag1","hashtag2"]},{"1350189310":["hashtag1","hashtag2"]},{"1350189301":["hashtag1","hashtag2"]},{"1350189315":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350189312, 1350189306, 1350189260, 1350189310, 1350189301, 1350189315)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.251569986343384 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 21:38:32.633720
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/21/38/image_06042025_21_38_44_9796.jpg', 2), ('/home/nano/Desktop/images/06042025/21/38/image_06042025_21_38_34_10830.jpg', 2), ('/home/nano/Desktop/images/06042025/21/38/image_06042025_21_38_23_9800.jpg', 2), ('/home/nano/Desktop/images/06042025/21/38/image_06042025_21_38_13_9824.jpg', 2), ('/home/nano/Desktop/images/06042025/21/37/image_06042025_21_38_04_9818.jpg', 2), ('/home/nano/Desktop/images/06042025/21/37/image_06042025_21_37_54_9800.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/21/38/image_06042025_21_38_44_9796.jpg', '/home/nano/Desktop/images/06042025/21/38/image_06042025_21_38_34_10830.jpg', '/home/nano/Desktop/images/06042025/21/38/image_06042025_21_38_23_9800.jpg', '/home/nano/Desktop/images/06042025/21/38/image_06042025_21_38_13_9824.jpg', '/home/nano/Desktop/images/06042025/21/37/image_06042025_21_38_04_9818.jpg', '/home/nano/Desktop/images/06042025/21/37/image_06042025_21_37_54_9800.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/21/38/image_06042025_21_38_44_9796.jpg
/home/nano/Desktop/images/06042025/21/38/image_06042025_21_38_34_10830.jpg
/home/nano/Desktop/images/06042025/21/38/image_06042025_21_38_23_9800.jpg
/home/nano/Desktop/images/06042025/21/38/image_06042025_21_38_13_9824.jpg
/home/nano/Desktop/images/06042025/21/37/image_06042025_21_38_04_9818.jpg
/home/nano/Desktop/images/06042025/21/37/image_06042025_21_37_54_9800.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350189431","1350189425","1350189428","1350189421","1350189415","1350189418"],"photo_ids_order":["1350189415","1350189418","1350189421","1350189425","1350189428","1350189431"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f81139fbad7e9e9a84a972be9d105845.jpg","text":"TemporaryFile(/tmp/multipartBody1471966056028229269asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968374948,"filename":"image_06042025_21_37_54_9800.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/19216b8a6bbd3a02932ed7a036add4de.jpg","text":"TemporaryFile(/tmp/multipartBody8413966830442556829asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968374948,"filename":"image_06042025_21_38_13_9824.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/44d173a410d8c12972740c70f9dc3051.jpg","text":"TemporaryFile(/tmp/multipartBody4910053268383505103asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968374948,"filename":"image_06042025_21_38_04_9818.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/dbf622fd8fd7db4361e5cf1b58f062e5.jpg","text":"TemporaryFile(/tmp/multipartBody7093032650595130125asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968374948,"filename":"image_06042025_21_38_23_9800.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/9f1e0de9e56b3ae049660de2ee37ba78.jpg","text":"TemporaryFile(/tmp/multipartBody145854015975977120asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968374948,"filename":"image_06042025_21_38_44_9796.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/0bb5258a8d673d6d95a8409637607489.jpg","text":"TemporaryFile(/tmp/multipartBody9129276806858742148asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968374948,"filename":"image_06042025_21_38_34_10830.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350189421","file1":"1350189418","file0":"1350189415","file4":"1350189428","file5":"1350189431","file3":"1350189425"},"map_files_photo_id_array":[{"photo_id":"1350189431","filename":"file5"},{"photo_id":"1350189421","filename":"file2"},{"photo_id":"1350189428","filename":"file4"},{"photo_id":"1350189418","filename":"file1"},{"photo_id":"1350189415","filename":"file0"},{"photo_id":"1350189425","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350189431":["hashtag1","hashtag2"]},{"1350189425":["hashtag1","hashtag2"]},{"1350189428":["hashtag1","hashtag2"]},{"1350189421":["hashtag1","hashtag2"]},{"1350189415":["hashtag1","hashtag2"]},{"1350189418":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350189431, 1350189425, 1350189428, 1350189421, 1350189415, 1350189418)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.193493127822876 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 21:39:32.748558
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/21/39/image_06042025_21_39_44_9774.jpg', 2), ('/home/nano/Desktop/images/06042025/21/39/image_06042025_21_39_34_9771.jpg', 2), ('/home/nano/Desktop/images/06042025/21/39/image_06042025_21_39_24_10834.jpg', 2), ('/home/nano/Desktop/images/06042025/21/39/image_06042025_21_39_13_9851.jpg', 2), ('/home/nano/Desktop/images/06042025/21/38/image_06042025_21_39_03_9814.jpg', 2), ('/home/nano/Desktop/images/06042025/21/38/image_06042025_21_38_54_9802.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/21/39/image_06042025_21_39_44_9774.jpg', '/home/nano/Desktop/images/06042025/21/39/image_06042025_21_39_34_9771.jpg', '/home/nano/Desktop/images/06042025/21/39/image_06042025_21_39_24_10834.jpg', '/home/nano/Desktop/images/06042025/21/39/image_06042025_21_39_13_9851.jpg', '/home/nano/Desktop/images/06042025/21/38/image_06042025_21_39_03_9814.jpg', '/home/nano/Desktop/images/06042025/21/38/image_06042025_21_38_54_9802.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/21/39/image_06042025_21_39_44_9774.jpg
/home/nano/Desktop/images/06042025/21/39/image_06042025_21_39_34_9771.jpg
/home/nano/Desktop/images/06042025/21/39/image_06042025_21_39_24_10834.jpg
/home/nano/Desktop/images/06042025/21/39/image_06042025_21_39_13_9851.jpg
/home/nano/Desktop/images/06042025/21/38/image_06042025_21_39_03_9814.jpg
/home/nano/Desktop/images/06042025/21/38/image_06042025_21_38_54_9802.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350189510","1350189487","1350189481","1350189514","1350189508","1350189491"],"photo_ids_order":["1350189481","1350189487","1350189491","1350189508","1350189510","1350189514"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/fb86d150884ba431671da3c6bf18b47e.jpg","text":"TemporaryFile(/tmp/multipartBody8892925427705317089asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968434971,"filename":"image_06042025_21_39_03_9814.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/8ceb5691f62536cbaf68dd8f5b068020.jpg","text":"TemporaryFile(/tmp/multipartBody1260625772705416892asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968434971,"filename":"image_06042025_21_39_34_9771.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b5c465b2a13727ddec9f21f8cd6207ce.jpg","text":"TemporaryFile(/tmp/multipartBody8786933261909473436asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968434971,"filename":"image_06042025_21_39_44_9774.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/2d3695b50a3397d8152ce72c9b50bcf0.jpg","text":"TemporaryFile(/tmp/multipartBody9110308463086013269asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968434971,"filename":"image_06042025_21_38_54_9802.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/23e9aad1e172ee91fafbb942abb4b45c.jpg","text":"TemporaryFile(/tmp/multipartBody20596132389703210asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968434971,"filename":"image_06042025_21_39_13_9851.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/1f123fcadd9182caba8a746862c5b4b0.jpg","text":"TemporaryFile(/tmp/multipartBody4405866828158306600asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968434971,"filename":"image_06042025_21_39_24_10834.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350189491","file1":"1350189487","file0":"1350189481","file4":"1350189510","file5":"1350189514","file3":"1350189508"},"map_files_photo_id_array":[{"photo_id":"1350189514","filename":"file5"},{"photo_id":"1350189491","filename":"file2"},{"photo_id":"1350189510","filename":"file4"},{"photo_id":"1350189487","filename":"file1"},{"photo_id":"1350189481","filename":"file0"},{"photo_id":"1350189508","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350189510":["hashtag1","hashtag2"]},{"1350189487":["hashtag1","hashtag2"]},{"1350189481":["hashtag1","hashtag2"]},{"1350189514":["hashtag1","hashtag2"]},{"1350189508":["hashtag1","hashtag2"]},{"1350189491":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350189510, 1350189487, 1350189481, 1350189514, 1350189508, 1350189491)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 37.31459355354309 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 21:40:31.825182
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/21/40/image_06042025_21_40_44_10646.jpg', 2), ('/home/nano/Desktop/images/06042025/21/40/image_06042025_21_40_33_9638.jpg', 2), ('/home/nano/Desktop/images/06042025/21/40/image_06042025_21_40_24_9802.jpg', 2), ('/home/nano/Desktop/images/06042025/21/40/image_06042025_21_40_14_10831.jpg', 2), ('/home/nano/Desktop/images/06042025/21/39/image_06042025_21_40_03_9753.jpg', 2), ('/home/nano/Desktop/images/06042025/21/39/image_06042025_21_39_53_9773.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/21/40/image_06042025_21_40_44_10646.jpg', '/home/nano/Desktop/images/06042025/21/40/image_06042025_21_40_33_9638.jpg', '/home/nano/Desktop/images/06042025/21/40/image_06042025_21_40_24_9802.jpg', '/home/nano/Desktop/images/06042025/21/40/image_06042025_21_40_14_10831.jpg', '/home/nano/Desktop/images/06042025/21/39/image_06042025_21_40_03_9753.jpg', '/home/nano/Desktop/images/06042025/21/39/image_06042025_21_39_53_9773.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/21/40/image_06042025_21_40_44_10646.jpg
/home/nano/Desktop/images/06042025/21/40/image_06042025_21_40_33_9638.jpg
/home/nano/Desktop/images/06042025/21/40/image_06042025_21_40_24_9802.jpg
/home/nano/Desktop/images/06042025/21/40/image_06042025_21_40_14_10831.jpg
/home/nano/Desktop/images/06042025/21/39/image_06042025_21_40_03_9753.jpg
/home/nano/Desktop/images/06042025/21/39/image_06042025_21_39_53_9773.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350189595","1350189592","1350189588","1350189618","1350189612","1350189528"],"photo_ids_order":["1350189528","1350189588","1350189592","1350189595","1350189612","1350189618"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/35239507e5867356a91d4872d0f032ff.jpg","text":"TemporaryFile(/tmp/multipartBody6678719873976962312asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968494830,"filename":"image_06042025_21_40_14_10831.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/32827fc55ad4b1ddbd0a4b9fc54354bb.jpg","text":"TemporaryFile(/tmp/multipartBody2004777751419703008asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968494830,"filename":"image_06042025_21_40_24_9802.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/af389fda020e0ed4ff2290ee2443f0c4.jpg","text":"TemporaryFile(/tmp/multipartBody1121320185783254315asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968494830,"filename":"image_06042025_21_40_33_9638.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b19edba633faf1e976ab4a07507a60ee.jpg","text":"TemporaryFile(/tmp/multipartBody974813702997251929asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968494830,"filename":"image_06042025_21_39_53_9773.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/fe7ab9c8fbda94e6b5d128ded5a5f939.jpg","text":"TemporaryFile(/tmp/multipartBody3341695712653305924asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968494830,"filename":"image_06042025_21_40_03_9753.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/da4ca31b48aa29cd77eabd186261d41d.jpg","text":"TemporaryFile(/tmp/multipartBody7148041407280854632asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968494830,"filename":"image_06042025_21_40_44_10646.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350189592","file1":"1350189588","file0":"1350189528","file4":"1350189612","file5":"1350189618","file3":"1350189595"},"map_files_photo_id_array":[{"photo_id":"1350189618","filename":"file5"},{"photo_id":"1350189592","filename":"file2"},{"photo_id":"1350189612","filename":"file4"},{"photo_id":"1350189588","filename":"file1"},{"photo_id":"1350189528","filename":"file0"},{"photo_id":"1350189595","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350189595":["hashtag1","hashtag2"]},{"1350189592":["hashtag1","hashtag2"]},{"1350189588":["hashtag1","hashtag2"]},{"1350189618":["hashtag1","hashtag2"]},{"1350189612":["hashtag1","hashtag2"]},{"1350189528":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350189595, 1350189592, 1350189588, 1350189618, 1350189612, 1350189528)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.4130425453186 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 21:41:32.036417
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/21/41/image_06042025_21_41_44_10644.jpg', 2), ('/home/nano/Desktop/images/06042025/21/41/image_06042025_21_41_33_9637.jpg', 2), ('/home/nano/Desktop/images/06042025/21/41/image_06042025_21_41_24_9642.jpg', 2), ('/home/nano/Desktop/images/06042025/21/41/image_06042025_21_41_14_10659.jpg', 2), ('/home/nano/Desktop/images/06042025/21/40/image_06042025_21_41_03_9646.jpg', 2), ('/home/nano/Desktop/images/06042025/21/40/image_06042025_21_40_54_9637.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/21/41/image_06042025_21_41_44_10644.jpg', '/home/nano/Desktop/images/06042025/21/41/image_06042025_21_41_33_9637.jpg', '/home/nano/Desktop/images/06042025/21/41/image_06042025_21_41_24_9642.jpg', '/home/nano/Desktop/images/06042025/21/41/image_06042025_21_41_14_10659.jpg', '/home/nano/Desktop/images/06042025/21/40/image_06042025_21_41_03_9646.jpg', '/home/nano/Desktop/images/06042025/21/40/image_06042025_21_40_54_9637.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/21/41/image_06042025_21_41_44_10644.jpg
/home/nano/Desktop/images/06042025/21/41/image_06042025_21_41_33_9637.jpg
/home/nano/Desktop/images/06042025/21/41/image_06042025_21_41_24_9642.jpg
/home/nano/Desktop/images/06042025/21/41/image_06042025_21_41_14_10659.jpg
/home/nano/Desktop/images/06042025/21/40/image_06042025_21_41_03_9646.jpg
/home/nano/Desktop/images/06042025/21/40/image_06042025_21_40_54_9637.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350189785","1350189767","1350189793","1350189781","1350189763","1350189774"],"photo_ids_order":["1350189763","1350189767","1350189774","1350189781","1350189785","1350189793"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/d0c6922d0a513ca02de0b3d9b8f95ef2.jpg","text":"TemporaryFile(/tmp/multipartBody7187489688460560423asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968553830,"filename":"image_06042025_21_41_03_9646.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/d4cc030d201d01a8578dcaeccf4ade09.jpg","text":"TemporaryFile(/tmp/multipartBody8704429293490973681asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968553830,"filename":"image_06042025_21_41_33_9637.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/00c5f6c6220b2d332cd7a2b6bbd874fb.jpg","text":"TemporaryFile(/tmp/multipartBody3631926108853746176asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968553830,"filename":"image_06042025_21_40_54_9637.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/62ee98b405b4b9eeee6e28b098b22394.jpg","text":"TemporaryFile(/tmp/multipartBody7705496830682582502asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968553830,"filename":"image_06042025_21_41_14_10659.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/5e6965e7563402c84a71ac12a93776b7.jpg","text":"TemporaryFile(/tmp/multipartBody7397811955811213933asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968553830,"filename":"image_06042025_21_41_44_10644.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/be59a995f547a097778654d38507751e.jpg","text":"TemporaryFile(/tmp/multipartBody3955985133587933256asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968553830,"filename":"image_06042025_21_41_24_9642.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350189774","file1":"1350189767","file0":"1350189763","file4":"1350189785","file5":"1350189793","file3":"1350189781"},"map_files_photo_id_array":[{"photo_id":"1350189793","filename":"file5"},{"photo_id":"1350189774","filename":"file2"},{"photo_id":"1350189785","filename":"file4"},{"photo_id":"1350189767","filename":"file1"},{"photo_id":"1350189763","filename":"file0"},{"photo_id":"1350189781","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350189785":["hashtag1","hashtag2"]},{"1350189767":["hashtag1","hashtag2"]},{"1350189793":["hashtag1","hashtag2"]},{"1350189781":["hashtag1","hashtag2"]},{"1350189763":["hashtag1","hashtag2"]},{"1350189774":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350189785, 1350189767, 1350189793, 1350189781, 1350189763, 1350189774)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.072092056274414 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 21:42:32.113473
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/21/42/image_06042025_21_42_44_10643.jpg', 2), ('/home/nano/Desktop/images/06042025/21/42/image_06042025_21_42_33_9656.jpg', 2), ('/home/nano/Desktop/images/06042025/21/42/image_06042025_21_42_24_9639.jpg', 2), ('/home/nano/Desktop/images/06042025/21/42/image_06042025_21_42_14_10679.jpg', 2), ('/home/nano/Desktop/images/06042025/21/41/image_06042025_21_42_03_9647.jpg', 2), ('/home/nano/Desktop/images/06042025/21/41/image_06042025_21_41_54_9635.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/21/42/image_06042025_21_42_44_10643.jpg', '/home/nano/Desktop/images/06042025/21/42/image_06042025_21_42_33_9656.jpg', '/home/nano/Desktop/images/06042025/21/42/image_06042025_21_42_24_9639.jpg', '/home/nano/Desktop/images/06042025/21/42/image_06042025_21_42_14_10679.jpg', '/home/nano/Desktop/images/06042025/21/41/image_06042025_21_42_03_9647.jpg', '/home/nano/Desktop/images/06042025/21/41/image_06042025_21_41_54_9635.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/21/42/image_06042025_21_42_44_10643.jpg
/home/nano/Desktop/images/06042025/21/42/image_06042025_21_42_33_9656.jpg
/home/nano/Desktop/images/06042025/21/42/image_06042025_21_42_24_9639.jpg
/home/nano/Desktop/images/06042025/21/42/image_06042025_21_42_14_10679.jpg
/home/nano/Desktop/images/06042025/21/41/image_06042025_21_42_03_9647.jpg
/home/nano/Desktop/images/06042025/21/41/image_06042025_21_41_54_9635.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350189909","1350189923","1350189917","1350189913","1350189888","1350189882"],"photo_ids_order":["1350189882","1350189888","1350189909","1350189913","1350189917","1350189923"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/7420e9d8dc68bdee85f5570783eeb850.jpg","text":"TemporaryFile(/tmp/multipartBody6841104812359736302asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968613571,"filename":"image_06042025_21_42_24_9639.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f43f5c6734eee729fd63285a8c99a978.jpg","text":"TemporaryFile(/tmp/multipartBody547434808998109439asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968613571,"filename":"image_06042025_21_41_54_9635.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/75b058449fd5a96fe7953155c163fe59.jpg","text":"TemporaryFile(/tmp/multipartBody894647823440856863asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968613571,"filename":"image_06042025_21_42_03_9647.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e9da3878c84e736934df1fc52fb4151e.jpg","text":"TemporaryFile(/tmp/multipartBody4083848738336823929asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968613571,"filename":"image_06042025_21_42_14_10679.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/38bb0824fba843ba6425f47b74ded369.jpg","text":"TemporaryFile(/tmp/multipartBody7344422374933173344asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968613571,"filename":"image_06042025_21_42_33_9656.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/81013acc2e0e6cc167e5bb363187ab7a.jpg","text":"TemporaryFile(/tmp/multipartBody155398226327254630asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968613571,"filename":"image_06042025_21_42_44_10643.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350189909","file1":"1350189888","file0":"1350189882","file4":"1350189917","file5":"1350189923","file3":"1350189913"},"map_files_photo_id_array":[{"photo_id":"1350189923","filename":"file5"},{"photo_id":"1350189909","filename":"file2"},{"photo_id":"1350189917","filename":"file4"},{"photo_id":"1350189888","filename":"file1"},{"photo_id":"1350189882","filename":"file0"},{"photo_id":"1350189913","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350189909":["hashtag1","hashtag2"]},{"1350189923":["hashtag1","hashtag2"]},{"1350189917":["hashtag1","hashtag2"]},{"1350189913":["hashtag1","hashtag2"]},{"1350189888":["hashtag1","hashtag2"]},{"1350189882":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350189909, 1350189923, 1350189917, 1350189913, 1350189888, 1350189882)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.72837996482849 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 21:43:32.224147
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/21/43/image_06042025_21_43_34_10658.jpg', 2), ('/home/nano/Desktop/images/06042025/21/43/image_06042025_21_43_23_9631.jpg', 2), ('/home/nano/Desktop/images/06042025/21/43/image_06042025_21_43_14_10681.jpg', 2), ('/home/nano/Desktop/images/06042025/21/42/image_06042025_21_43_03_9646.jpg', 2), ('/home/nano/Desktop/images/06042025/21/42/image_06042025_21_42_54_9631.jpg', 2), ('/home/nano/Desktop/images/06042025/19/55/image_06042025_19_55_54_9788.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/21/43/image_06042025_21_43_34_10658.jpg', '/home/nano/Desktop/images/06042025/21/43/image_06042025_21_43_23_9631.jpg', '/home/nano/Desktop/images/06042025/21/43/image_06042025_21_43_14_10681.jpg', '/home/nano/Desktop/images/06042025/21/42/image_06042025_21_43_03_9646.jpg', '/home/nano/Desktop/images/06042025/21/42/image_06042025_21_42_54_9631.jpg', '/home/nano/Desktop/images/06042025/19/55/image_06042025_19_55_54_9788.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/21/43/image_06042025_21_43_34_10658.jpg
/home/nano/Desktop/images/06042025/21/43/image_06042025_21_43_23_9631.jpg
/home/nano/Desktop/images/06042025/21/43/image_06042025_21_43_14_10681.jpg
/home/nano/Desktop/images/06042025/21/42/image_06042025_21_43_03_9646.jpg
/home/nano/Desktop/images/06042025/21/42/image_06042025_21_42_54_9631.jpg
/home/nano/Desktop/images/06042025/19/55/image_06042025_19_55_54_9788.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350190206","1350190091","1350190205","1350190099","1350190093","1350190074"],"photo_ids_order":["1350190074","1350190091","1350190093","1350190099","1350190205","1350190206"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c671ac494cfd9e93be0b409705c51d89.jpg","text":"TemporaryFile(/tmp/multipartBody4534820866462355029asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968673806,"filename":"image_06042025_19_55_54_9788.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/bcf4d922aa9dc02e814ff6f83068cc3d.jpg","text":"TemporaryFile(/tmp/multipartBody4538129616860756546asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968673806,"filename":"image_06042025_21_43_23_9631.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/25109d982e7bdd1ceb7c69eed1f878a5.jpg","text":"TemporaryFile(/tmp/multipartBody1896596071319334958asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968673806,"filename":"image_06042025_21_42_54_9631.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/08a383abc2f4fab662ddd5bcadc35a53.jpg","text":"TemporaryFile(/tmp/multipartBody5574926951658163909asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968673806,"filename":"image_06042025_21_43_03_9646.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/68fa66511567404085129e331b18ceba.jpg","text":"TemporaryFile(/tmp/multipartBody5420340065569511662asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968673806,"filename":"image_06042025_21_43_14_10681.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a20d110d56ad68628283ff25746a5323.jpg","text":"TemporaryFile(/tmp/multipartBody2826916517090319473asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968673806,"filename":"image_06042025_21_43_34_10658.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350190093","file1":"1350190091","file0":"1350190074","file4":"1350190205","file5":"1350190206","file3":"1350190099"},"map_files_photo_id_array":[{"photo_id":"1350190206","filename":"file5"},{"photo_id":"1350190093","filename":"file2"},{"photo_id":"1350190205","filename":"file4"},{"photo_id":"1350190091","filename":"file1"},{"photo_id":"1350190074","filename":"file0"},{"photo_id":"1350190099","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350190206":["hashtag1","hashtag2"]},{"1350190091":["hashtag1","hashtag2"]},{"1350190205":["hashtag1","hashtag2"]},{"1350190099":["hashtag1","hashtag2"]},{"1350190093":["hashtag1","hashtag2"]},{"1350190074":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350190206, 1350190091, 1350190205, 1350190099, 1350190093, 1350190074)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.10189771652222 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 21:44:32.369990
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/21/44/image_06042025_21_44_44_9641.jpg', 2), ('/home/nano/Desktop/images/06042025/21/44/image_06042025_21_44_34_10647.jpg', 2), ('/home/nano/Desktop/images/06042025/21/44/image_06042025_21_44_23_9637.jpg', 2), ('/home/nano/Desktop/images/06042025/21/44/image_06042025_21_44_14_9656.jpg', 2), ('/home/nano/Desktop/images/06042025/21/43/image_06042025_21_44_04_10653.jpg', 2), ('/home/nano/Desktop/images/06042025/21/43/image_06042025_21_43_53_9633.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/21/44/image_06042025_21_44_44_9641.jpg', '/home/nano/Desktop/images/06042025/21/44/image_06042025_21_44_34_10647.jpg', '/home/nano/Desktop/images/06042025/21/44/image_06042025_21_44_23_9637.jpg', '/home/nano/Desktop/images/06042025/21/44/image_06042025_21_44_14_9656.jpg', '/home/nano/Desktop/images/06042025/21/43/image_06042025_21_44_04_10653.jpg', '/home/nano/Desktop/images/06042025/21/43/image_06042025_21_43_53_9633.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/21/44/image_06042025_21_44_44_9641.jpg
/home/nano/Desktop/images/06042025/21/44/image_06042025_21_44_34_10647.jpg
/home/nano/Desktop/images/06042025/21/44/image_06042025_21_44_23_9637.jpg
/home/nano/Desktop/images/06042025/21/44/image_06042025_21_44_14_9656.jpg
/home/nano/Desktop/images/06042025/21/43/image_06042025_21_44_04_10653.jpg
/home/nano/Desktop/images/06042025/21/43/image_06042025_21_43_53_9633.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350190233","1350190224","1350190238","1350190226","1350190231","1350190245"],"photo_ids_order":["1350190224","1350190226","1350190231","1350190233","1350190238","1350190245"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f8ad34b5ffbb05316530276df027ffeb.jpg","text":"TemporaryFile(/tmp/multipartBody491896693053810632asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968733887,"filename":"image_06042025_21_44_14_9656.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/8d015d42f4be8f348c1d6d4e631c4b3f.jpg","text":"TemporaryFile(/tmp/multipartBody5406152152120354553asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968733887,"filename":"image_06042025_21_44_44_9641.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/2d6ef452abec963fc06de66f45a152a0.jpg","text":"TemporaryFile(/tmp/multipartBody4484916018146554504asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968733887,"filename":"image_06042025_21_44_04_10653.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/39bea138484ea0b1146a349e47822d10.jpg","text":"TemporaryFile(/tmp/multipartBody4409480429700768443asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968733887,"filename":"image_06042025_21_44_34_10647.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/36ea2b5dfa3a49de9914114b118cbefb.jpg","text":"TemporaryFile(/tmp/multipartBody2608527593919610993asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968733887,"filename":"image_06042025_21_44_23_9637.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a5f1691e5fa79dd850cdc504a31e0f04.jpg","text":"TemporaryFile(/tmp/multipartBody1536829419456933540asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968733887,"filename":"image_06042025_21_43_53_9633.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350190231","file1":"1350190226","file0":"1350190224","file4":"1350190238","file5":"1350190245","file3":"1350190233"},"map_files_photo_id_array":[{"photo_id":"1350190245","filename":"file5"},{"photo_id":"1350190231","filename":"file2"},{"photo_id":"1350190238","filename":"file4"},{"photo_id":"1350190226","filename":"file1"},{"photo_id":"1350190224","filename":"file0"},{"photo_id":"1350190233","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350190233":["hashtag1","hashtag2"]},{"1350190224":["hashtag1","hashtag2"]},{"1350190238":["hashtag1","hashtag2"]},{"1350190226":["hashtag1","hashtag2"]},{"1350190231":["hashtag1","hashtag2"]},{"1350190245":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350190233, 1350190224, 1350190238, 1350190226, 1350190231, 1350190245)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.49581480026245 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 21:45:32.446776
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/21/45/image_06042025_21_45_44_9639.jpg', 2), ('/home/nano/Desktop/images/06042025/21/45/image_06042025_21_45_34_10651.jpg', 2), ('/home/nano/Desktop/images/06042025/21/45/image_06042025_21_45_14_9660.jpg', 2), ('/home/nano/Desktop/images/06042025/21/44/image_06042025_21_45_04_10659.jpg', 2), ('/home/nano/Desktop/images/06042025/21/44/image_06042025_21_44_53_9638.jpg', 2), ('/home/nano/Desktop/images/06042025/19/55/image_06042025_19_55_44_10815.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/21/45/image_06042025_21_45_44_9639.jpg', '/home/nano/Desktop/images/06042025/21/45/image_06042025_21_45_34_10651.jpg', '/home/nano/Desktop/images/06042025/21/45/image_06042025_21_45_14_9660.jpg', '/home/nano/Desktop/images/06042025/21/44/image_06042025_21_45_04_10659.jpg', '/home/nano/Desktop/images/06042025/21/44/image_06042025_21_44_53_9638.jpg', '/home/nano/Desktop/images/06042025/19/55/image_06042025_19_55_44_10815.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/21/45/image_06042025_21_45_44_9639.jpg
/home/nano/Desktop/images/06042025/21/45/image_06042025_21_45_34_10651.jpg
/home/nano/Desktop/images/06042025/21/45/image_06042025_21_45_14_9660.jpg
/home/nano/Desktop/images/06042025/21/44/image_06042025_21_45_04_10659.jpg
/home/nano/Desktop/images/06042025/21/44/image_06042025_21_44_53_9638.jpg
/home/nano/Desktop/images/06042025/19/55/image_06042025_19_55_44_10815.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350190269","1350190320","1350190314","1350190323","1350190316","1350190266"],"photo_ids_order":["1350190266","1350190269","1350190314","1350190316","1350190320","1350190323"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/7f37dfc5afb715508ae18c579e642ca7.jpg","text":"TemporaryFile(/tmp/multipartBody4764505346201509861asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968794688,"filename":"image_06042025_21_45_34_10651.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ec1904ae63a018588b921798750df017.jpg","text":"TemporaryFile(/tmp/multipartBody7862172939850966090asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968794688,"filename":"image_06042025_21_44_53_9638.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/6b5403d266d0e22dd57f70fa2521a2b7.jpg","text":"TemporaryFile(/tmp/multipartBody2689351752614454939asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968794688,"filename":"image_06042025_21_45_14_9660.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/09802ae2a8151c1d6d8693960966cd0f.jpg","text":"TemporaryFile(/tmp/multipartBody3576717499373289088asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968794688,"filename":"image_06042025_19_55_44_10815.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/99041342269273c85b3e493dccf06a73.jpg","text":"TemporaryFile(/tmp/multipartBody4636813874355946685asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968794688,"filename":"image_06042025_21_45_04_10659.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/353c112f3a026dd7962c6ce2246b1511.jpg","text":"TemporaryFile(/tmp/multipartBody500135191749623515asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968794688,"filename":"image_06042025_21_45_44_9639.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350190314","file1":"1350190269","file0":"1350190266","file4":"1350190320","file5":"1350190323","file3":"1350190316"},"map_files_photo_id_array":[{"photo_id":"1350190323","filename":"file5"},{"photo_id":"1350190314","filename":"file2"},{"photo_id":"1350190320","filename":"file4"},{"photo_id":"1350190269","filename":"file1"},{"photo_id":"1350190266","filename":"file0"},{"photo_id":"1350190316","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350190269":["hashtag1","hashtag2"]},{"1350190320":["hashtag1","hashtag2"]},{"1350190314":["hashtag1","hashtag2"]},{"1350190323":["hashtag1","hashtag2"]},{"1350190316":["hashtag1","hashtag2"]},{"1350190266":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350190269, 1350190320, 1350190314, 1350190323, 1350190316, 1350190266)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.178725719451904 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 21:46:32.566173
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/21/46/image_06042025_21_46_43_9631.jpg', 2), ('/home/nano/Desktop/images/06042025/21/46/image_06042025_21_46_34_9631.jpg', 2), ('/home/nano/Desktop/images/06042025/21/46/image_06042025_21_46_24_10646.jpg', 2), ('/home/nano/Desktop/images/06042025/21/45/image_06042025_21_46_04_10655.jpg', 2), ('/home/nano/Desktop/images/06042025/21/45/image_06042025_21_45_53_9635.jpg', 2), ('/home/nano/Desktop/images/06042025/19/55/image_06042025_19_55_33_9830.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/21/46/image_06042025_21_46_43_9631.jpg', '/home/nano/Desktop/images/06042025/21/46/image_06042025_21_46_34_9631.jpg', '/home/nano/Desktop/images/06042025/21/46/image_06042025_21_46_24_10646.jpg', '/home/nano/Desktop/images/06042025/21/45/image_06042025_21_46_04_10655.jpg', '/home/nano/Desktop/images/06042025/21/45/image_06042025_21_45_53_9635.jpg', '/home/nano/Desktop/images/06042025/19/55/image_06042025_19_55_33_9830.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/21/46/image_06042025_21_46_43_9631.jpg
/home/nano/Desktop/images/06042025/21/46/image_06042025_21_46_34_9631.jpg
/home/nano/Desktop/images/06042025/21/46/image_06042025_21_46_24_10646.jpg
/home/nano/Desktop/images/06042025/21/45/image_06042025_21_46_04_10655.jpg
/home/nano/Desktop/images/06042025/21/45/image_06042025_21_45_53_9635.jpg
/home/nano/Desktop/images/06042025/19/55/image_06042025_19_55_33_9830.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350190347","1350190364","1350190362","1350190356","1350190359","1350190350"],"photo_ids_order":["1350190347","1350190350","1350190356","1350190359","1350190362","1350190364"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/195d0b62eeafc401949c7fffe6b1acce.jpg","text":"TemporaryFile(/tmp/multipartBody4473646776423550351asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968855205,"filename":"image_06042025_21_46_43_9631.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/1c2e09a6b15751521948e1a65b23649c.jpg","text":"TemporaryFile(/tmp/multipartBody7252269083266996017asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968855205,"filename":"image_06042025_19_55_33_9830.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c2cfa6c65e98ceb278b9e10080b2854a.jpg","text":"TemporaryFile(/tmp/multipartBody4594153367952980402asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968855205,"filename":"image_06042025_21_45_53_9635.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/6d4bb3c1de0d2773b5ab273c7681f8bd.jpg","text":"TemporaryFile(/tmp/multipartBody7590561072284024990asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968855205,"filename":"image_06042025_21_46_24_10646.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/276ac6edc337993393f5e80fe87f7d7c.jpg","text":"TemporaryFile(/tmp/multipartBody7644973311892315272asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968855205,"filename":"image_06042025_21_46_04_10655.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e2952a9225b03fb0b617c4984bbcb1d5.jpg","text":"TemporaryFile(/tmp/multipartBody6972610418896605934asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968855205,"filename":"image_06042025_21_46_34_9631.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350190356","file1":"1350190350","file0":"1350190347","file4":"1350190362","file5":"1350190364","file3":"1350190359"},"map_files_photo_id_array":[{"photo_id":"1350190364","filename":"file5"},{"photo_id":"1350190356","filename":"file2"},{"photo_id":"1350190362","filename":"file4"},{"photo_id":"1350190350","filename":"file1"},{"photo_id":"1350190347","filename":"file0"},{"photo_id":"1350190359","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350190347":["hashtag1","hashtag2"]},{"1350190364":["hashtag1","hashtag2"]},{"1350190362":["hashtag1","hashtag2"]},{"1350190356":["hashtag1","hashtag2"]},{"1350190359":["hashtag1","hashtag2"]},{"1350190350":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350190347, 1350190364, 1350190362, 1350190356, 1350190359, 1350190350)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 37.78158664703369 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 21:47:32.672714
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/21/47/image_06042025_21_47_34_9644.jpg', 2), ('/home/nano/Desktop/images/06042025/21/47/image_06042025_21_47_24_10652.jpg', 2), ('/home/nano/Desktop/images/06042025/21/46/image_06042025_21_47_04_9665.jpg', 2), ('/home/nano/Desktop/images/06042025/21/46/image_06042025_21_46_54_10659.jpg', 2), ('/home/nano/Desktop/images/06042025/19/55/image_06042025_19_55_23_9847.jpg', 2), ('/home/nano/Desktop/images/06042025/19/55/image_06042025_19_55_14_9867.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/21/47/image_06042025_21_47_34_9644.jpg', '/home/nano/Desktop/images/06042025/21/47/image_06042025_21_47_24_10652.jpg', '/home/nano/Desktop/images/06042025/21/46/image_06042025_21_47_04_9665.jpg', '/home/nano/Desktop/images/06042025/21/46/image_06042025_21_46_54_10659.jpg', '/home/nano/Desktop/images/06042025/19/55/image_06042025_19_55_23_9847.jpg', '/home/nano/Desktop/images/06042025/19/55/image_06042025_19_55_14_9867.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/21/47/image_06042025_21_47_34_9644.jpg
/home/nano/Desktop/images/06042025/21/47/image_06042025_21_47_24_10652.jpg
/home/nano/Desktop/images/06042025/21/46/image_06042025_21_47_04_9665.jpg
/home/nano/Desktop/images/06042025/21/46/image_06042025_21_46_54_10659.jpg
/home/nano/Desktop/images/06042025/19/55/image_06042025_19_55_23_9847.jpg
/home/nano/Desktop/images/06042025/19/55/image_06042025_19_55_14_9867.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350190391","1350190382","1350190379","1350190395","1350190377","1350190386"],"photo_ids_order":["1350190377","1350190379","1350190382","1350190386","1350190391","1350190395"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/140c7755811ab222aaff243f5b8db01a.jpg","text":"TemporaryFile(/tmp/multipartBody5788693340522355603asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968914522,"filename":"image_06042025_19_55_23_9847.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c466c73f29bb04af7f4b98e1b825d1d8.jpg","text":"TemporaryFile(/tmp/multipartBody2897992878887896308asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968914522,"filename":"image_06042025_21_47_04_9665.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/94f341bee75fea9e113d39e0730232c1.jpg","text":"TemporaryFile(/tmp/multipartBody6239358308753256134asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968914522,"filename":"image_06042025_21_47_24_10652.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c973d41d881a9efb08ff23f47744af19.jpg","text":"TemporaryFile(/tmp/multipartBody3246521358632318751asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968914522,"filename":"image_06042025_19_55_14_9867.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/88953015031c93bed3a44fa21075d3f1.jpg","text":"TemporaryFile(/tmp/multipartBody6833163733983895611asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968914522,"filename":"image_06042025_21_47_34_9644.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/8e2254583cff4482f13ef54aa322a7fe.jpg","text":"TemporaryFile(/tmp/multipartBody4439843824662222166asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968914522,"filename":"image_06042025_21_46_54_10659.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350190382","file1":"1350190379","file0":"1350190377","file4":"1350190391","file5":"1350190395","file3":"1350190386"},"map_files_photo_id_array":[{"photo_id":"1350190395","filename":"file5"},{"photo_id":"1350190382","filename":"file2"},{"photo_id":"1350190391","filename":"file4"},{"photo_id":"1350190379","filename":"file1"},{"photo_id":"1350190377","filename":"file0"},{"photo_id":"1350190386","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350190391":["hashtag1","hashtag2"]},{"1350190382":["hashtag1","hashtag2"]},{"1350190379":["hashtag1","hashtag2"]},{"1350190395":["hashtag1","hashtag2"]},{"1350190377":["hashtag1","hashtag2"]},{"1350190386":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350190391, 1350190382, 1350190379, 1350190395, 1350190377, 1350190386)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.60816979408264 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 21:48:31.761530
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/21/48/image_06042025_21_48_43_9646.jpg', 2), ('/home/nano/Desktop/images/06042025/21/48/image_06042025_21_48_34_9664.jpg', 2), ('/home/nano/Desktop/images/06042025/21/48/image_06042025_21_48_24_10666.jpg', 2), ('/home/nano/Desktop/images/06042025/21/47/image_06042025_21_48_04_9648.jpg', 2), ('/home/nano/Desktop/images/06042025/21/47/image_06042025_21_47_43_9674.jpg', 2), ('/home/nano/Desktop/images/06042025/19/54/image_06042025_19_55_04_9856.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/21/48/image_06042025_21_48_43_9646.jpg', '/home/nano/Desktop/images/06042025/21/48/image_06042025_21_48_34_9664.jpg', '/home/nano/Desktop/images/06042025/21/48/image_06042025_21_48_24_10666.jpg', '/home/nano/Desktop/images/06042025/21/47/image_06042025_21_48_04_9648.jpg', '/home/nano/Desktop/images/06042025/21/47/image_06042025_21_47_43_9674.jpg', '/home/nano/Desktop/images/06042025/19/54/image_06042025_19_55_04_9856.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/21/48/image_06042025_21_48_43_9646.jpg
/home/nano/Desktop/images/06042025/21/48/image_06042025_21_48_34_9664.jpg
/home/nano/Desktop/images/06042025/21/48/image_06042025_21_48_24_10666.jpg
/home/nano/Desktop/images/06042025/21/47/image_06042025_21_48_04_9648.jpg
/home/nano/Desktop/images/06042025/21/47/image_06042025_21_47_43_9674.jpg
/home/nano/Desktop/images/06042025/19/54/image_06042025_19_55_04_9856.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350190410","1350190440","1350190406","1350190415","1350190444","1350190447"],"photo_ids_order":["1350190406","1350190410","1350190415","1350190440","1350190444","1350190447"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/da83597ea5952be8acba1cbdeec64f77.jpg","text":"TemporaryFile(/tmp/multipartBody1142874585794959774asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968973376,"filename":"image_06042025_21_48_34_9664.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/63bfdf06c5c9ffd501594a7dd18a3d3c.jpg","text":"TemporaryFile(/tmp/multipartBody6108089648668724436asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968973376,"filename":"image_06042025_21_48_04_9648.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/fb13f9998a442cb1450af96dffb2758c.jpg","text":"TemporaryFile(/tmp/multipartBody6671220180991091373asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968973376,"filename":"image_06042025_21_48_43_9646.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/0d4dbbe25c1437e5bfd450d2323aae5b.jpg","text":"TemporaryFile(/tmp/multipartBody4146542979003154114asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968973376,"filename":"image_06042025_21_48_24_10666.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/0ed3b2446bb2b32a345222008b331e8b.jpg","text":"TemporaryFile(/tmp/multipartBody5264792239632885421asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968973376,"filename":"image_06042025_21_47_43_9674.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/d812adde63539fd94852a7535f0c9196.jpg","text":"TemporaryFile(/tmp/multipartBody1519682518638676179asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743968973376,"filename":"image_06042025_19_55_04_9856.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350190415","file1":"1350190410","file0":"1350190406","file4":"1350190444","file5":"1350190447","file3":"1350190440"},"map_files_photo_id_array":[{"photo_id":"1350190447","filename":"file5"},{"photo_id":"1350190415","filename":"file2"},{"photo_id":"1350190444","filename":"file4"},{"photo_id":"1350190410","filename":"file1"},{"photo_id":"1350190406","filename":"file0"},{"photo_id":"1350190440","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350190410":["hashtag1","hashtag2"]},{"1350190440":["hashtag1","hashtag2"]},{"1350190406":["hashtag1","hashtag2"]},{"1350190415":["hashtag1","hashtag2"]},{"1350190444":["hashtag1","hashtag2"]},{"1350190447":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350190410, 1350190440, 1350190406, 1350190415, 1350190444, 1350190447)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.34970688819885 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 21:49:31.865215
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/21/49/image_06042025_21_49_43_9778.jpg', 2), ('/home/nano/Desktop/images/06042025/21/49/image_06042025_21_49_34_9647.jpg', 2), ('/home/nano/Desktop/images/06042025/21/49/image_06042025_21_49_24_10637.jpg', 2), ('/home/nano/Desktop/images/06042025/21/49/image_06042025_21_49_13_9666.jpg', 2), ('/home/nano/Desktop/images/06042025/21/48/image_06042025_21_49_04_9662.jpg', 2), ('/home/nano/Desktop/images/06042025/21/48/image_06042025_21_48_54_10656.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/21/49/image_06042025_21_49_43_9778.jpg', '/home/nano/Desktop/images/06042025/21/49/image_06042025_21_49_34_9647.jpg', '/home/nano/Desktop/images/06042025/21/49/image_06042025_21_49_24_10637.jpg', '/home/nano/Desktop/images/06042025/21/49/image_06042025_21_49_13_9666.jpg', '/home/nano/Desktop/images/06042025/21/48/image_06042025_21_49_04_9662.jpg', '/home/nano/Desktop/images/06042025/21/48/image_06042025_21_48_54_10656.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/21/49/image_06042025_21_49_43_9778.jpg
/home/nano/Desktop/images/06042025/21/49/image_06042025_21_49_34_9647.jpg
/home/nano/Desktop/images/06042025/21/49/image_06042025_21_49_24_10637.jpg
/home/nano/Desktop/images/06042025/21/49/image_06042025_21_49_13_9666.jpg
/home/nano/Desktop/images/06042025/21/48/image_06042025_21_49_04_9662.jpg
/home/nano/Desktop/images/06042025/21/48/image_06042025_21_48_54_10656.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350190566","1350190551","1350190547","1350190562","1350190556","1350190536"],"photo_ids_order":["1350190536","1350190547","1350190551","1350190556","1350190562","1350190566"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/63376a18ec118d4e3ece53b0391547bc.jpg","text":"TemporaryFile(/tmp/multipartBody6689974993417642583asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969033822,"filename":"image_06042025_21_48_54_10656.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4a6a9cd7c9df896b5f860d792ac602fe.jpg","text":"TemporaryFile(/tmp/multipartBody1354133081648523210asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969033822,"filename":"image_06042025_21_49_24_10637.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4619f34d1a341ca7ca8d4a7f3fb99d36.jpg","text":"TemporaryFile(/tmp/multipartBody7005082940624996017asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969033822,"filename":"image_06042025_21_49_34_9647.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/d586ef9a00fec44d3a356cd982d3ce61.jpg","text":"TemporaryFile(/tmp/multipartBody6738676610416064965asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969033822,"filename":"image_06042025_21_49_04_9662.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/694793d0d6375907572d71c11b6c2952.jpg","text":"TemporaryFile(/tmp/multipartBody6548219242291595193asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969033822,"filename":"image_06042025_21_49_13_9666.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b030233ce70898ad67e3baacae980c4a.jpg","text":"TemporaryFile(/tmp/multipartBody4766069132359886580asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969033822,"filename":"image_06042025_21_49_43_9778.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350190551","file1":"1350190547","file0":"1350190536","file4":"1350190562","file5":"1350190566","file3":"1350190556"},"map_files_photo_id_array":[{"photo_id":"1350190566","filename":"file5"},{"photo_id":"1350190551","filename":"file2"},{"photo_id":"1350190562","filename":"file4"},{"photo_id":"1350190547","filename":"file1"},{"photo_id":"1350190536","filename":"file0"},{"photo_id":"1350190556","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350190566":["hashtag1","hashtag2"]},{"1350190551":["hashtag1","hashtag2"]},{"1350190547":["hashtag1","hashtag2"]},{"1350190562":["hashtag1","hashtag2"]},{"1350190556":["hashtag1","hashtag2"]},{"1350190536":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350190566, 1350190551, 1350190547, 1350190562, 1350190556, 1350190536)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.95507574081421 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 21:50:31.956865
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/21/50/image_06042025_21_50_44_9803.jpg', 2), ('/home/nano/Desktop/images/06042025/21/50/image_06042025_21_50_34_9802.jpg', 2), ('/home/nano/Desktop/images/06042025/21/50/image_06042025_21_50_24_10687.jpg', 2), ('/home/nano/Desktop/images/06042025/21/50/image_06042025_21_50_13_9674.jpg', 2), ('/home/nano/Desktop/images/06042025/21/49/image_06042025_21_50_04_9660.jpg', 2), ('/home/nano/Desktop/images/06042025/21/49/image_06042025_21_49_54_10785.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/21/50/image_06042025_21_50_44_9803.jpg', '/home/nano/Desktop/images/06042025/21/50/image_06042025_21_50_34_9802.jpg', '/home/nano/Desktop/images/06042025/21/50/image_06042025_21_50_24_10687.jpg', '/home/nano/Desktop/images/06042025/21/50/image_06042025_21_50_13_9674.jpg', '/home/nano/Desktop/images/06042025/21/49/image_06042025_21_50_04_9660.jpg', '/home/nano/Desktop/images/06042025/21/49/image_06042025_21_49_54_10785.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/21/50/image_06042025_21_50_44_9803.jpg
/home/nano/Desktop/images/06042025/21/50/image_06042025_21_50_34_9802.jpg
/home/nano/Desktop/images/06042025/21/50/image_06042025_21_50_24_10687.jpg
/home/nano/Desktop/images/06042025/21/50/image_06042025_21_50_13_9674.jpg
/home/nano/Desktop/images/06042025/21/49/image_06042025_21_50_04_9660.jpg
/home/nano/Desktop/images/06042025/21/49/image_06042025_21_49_54_10785.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350190722","1350190707","1350190712","1350190715","1350190709","1350190720"],"photo_ids_order":["1350190707","1350190709","1350190712","1350190715","1350190720","1350190722"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e59050dc4ef7f0a31fb31e8a1586b055.jpg","text":"TemporaryFile(/tmp/multipartBody5451020990657000715asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969093830,"filename":"image_06042025_21_49_54_10785.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c889791104f98d173e0fe3f5f5ed3b99.jpg","text":"TemporaryFile(/tmp/multipartBody3458924455895080709asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969093830,"filename":"image_06042025_21_50_44_9803.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e7048172b38d50c7a5ce21d9ac41550e.jpg","text":"TemporaryFile(/tmp/multipartBody675746811720159113asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969093830,"filename":"image_06042025_21_50_24_10687.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/6b685a54b8e0edc904728ec8e514a020.jpg","text":"TemporaryFile(/tmp/multipartBody3008139413499159781asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969093830,"filename":"image_06042025_21_50_13_9674.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/1880f25a2cb4df2eccf0a3f26c065f6c.jpg","text":"TemporaryFile(/tmp/multipartBody3468246843484986243asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969093830,"filename":"image_06042025_21_50_34_9802.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/5c01d72d46ea72abe43140470ded3537.jpg","text":"TemporaryFile(/tmp/multipartBody3068787156957660686asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969093830,"filename":"image_06042025_21_50_04_9660.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350190712","file1":"1350190709","file0":"1350190707","file4":"1350190720","file5":"1350190722","file3":"1350190715"},"map_files_photo_id_array":[{"photo_id":"1350190722","filename":"file5"},{"photo_id":"1350190712","filename":"file2"},{"photo_id":"1350190720","filename":"file4"},{"photo_id":"1350190709","filename":"file1"},{"photo_id":"1350190707","filename":"file0"},{"photo_id":"1350190715","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350190722":["hashtag1","hashtag2"]},{"1350190707":["hashtag1","hashtag2"]},{"1350190712":["hashtag1","hashtag2"]},{"1350190715":["hashtag1","hashtag2"]},{"1350190709":["hashtag1","hashtag2"]},{"1350190720":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350190722, 1350190707, 1350190712, 1350190715, 1350190709, 1350190720)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.872097969055176 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 21:51:32.050901
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/21/51/image_06042025_21_51_44_10660.jpg', 2), ('/home/nano/Desktop/images/06042025/21/51/image_06042025_21_51_33_9647.jpg', 2), ('/home/nano/Desktop/images/06042025/21/51/image_06042025_21_51_24_9649.jpg', 2), ('/home/nano/Desktop/images/06042025/21/51/image_06042025_21_51_14_10679.jpg', 2), ('/home/nano/Desktop/images/06042025/21/50/image_06042025_21_51_03_9804.jpg', 2), ('/home/nano/Desktop/images/06042025/21/50/image_06042025_21_50_54_9803.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/21/51/image_06042025_21_51_44_10660.jpg', '/home/nano/Desktop/images/06042025/21/51/image_06042025_21_51_33_9647.jpg', '/home/nano/Desktop/images/06042025/21/51/image_06042025_21_51_24_9649.jpg', '/home/nano/Desktop/images/06042025/21/51/image_06042025_21_51_14_10679.jpg', '/home/nano/Desktop/images/06042025/21/50/image_06042025_21_51_03_9804.jpg', '/home/nano/Desktop/images/06042025/21/50/image_06042025_21_50_54_9803.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/21/51/image_06042025_21_51_44_10660.jpg
/home/nano/Desktop/images/06042025/21/51/image_06042025_21_51_33_9647.jpg
/home/nano/Desktop/images/06042025/21/51/image_06042025_21_51_24_9649.jpg
/home/nano/Desktop/images/06042025/21/51/image_06042025_21_51_14_10679.jpg
/home/nano/Desktop/images/06042025/21/50/image_06042025_21_51_03_9804.jpg
/home/nano/Desktop/images/06042025/21/50/image_06042025_21_50_54_9803.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350190812","1350190850","1350190844","1350190847","1350190808","1350190852"],"photo_ids_order":["1350190808","1350190812","1350190844","1350190847","1350190850","1350190852"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/0deedff237f69ec64922e65f4aa01914.jpg","text":"TemporaryFile(/tmp/multipartBody7768654214507132808asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969153998,"filename":"image_06042025_21_51_33_9647.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/0c7d516a71e2b4ef9a147fab1ba74f25.jpg","text":"TemporaryFile(/tmp/multipartBody6199035326045984626asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969153998,"filename":"image_06042025_21_51_03_9804.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/3878366a102c8ce7ffad7c72e18156c3.jpg","text":"TemporaryFile(/tmp/multipartBody4441350732817089756asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969153998,"filename":"image_06042025_21_51_24_9649.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/0d012a24e0bea2884a4ff5d1a79b950f.jpg","text":"TemporaryFile(/tmp/multipartBody6283638930967705712asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969153998,"filename":"image_06042025_21_51_14_10679.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/3e020c6f3d9d0c83979c2ae092fe2881.jpg","text":"TemporaryFile(/tmp/multipartBody4328405925053714019asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969153998,"filename":"image_06042025_21_51_44_10660.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/cb25fcc27f5c80eefe9f383c2db01c20.jpg","text":"TemporaryFile(/tmp/multipartBody4878738297464794376asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969153998,"filename":"image_06042025_21_50_54_9803.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350190844","file1":"1350190812","file0":"1350190808","file4":"1350190850","file5":"1350190852","file3":"1350190847"},"map_files_photo_id_array":[{"photo_id":"1350190852","filename":"file5"},{"photo_id":"1350190844","filename":"file2"},{"photo_id":"1350190850","filename":"file4"},{"photo_id":"1350190812","filename":"file1"},{"photo_id":"1350190808","filename":"file0"},{"photo_id":"1350190847","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350190812":["hashtag1","hashtag2"]},{"1350190850":["hashtag1","hashtag2"]},{"1350190844":["hashtag1","hashtag2"]},{"1350190847":["hashtag1","hashtag2"]},{"1350190808":["hashtag1","hashtag2"]},{"1350190852":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350190812, 1350190850, 1350190844, 1350190847, 1350190808, 1350190852)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.77057433128357 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 21:52:32.152689
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/21/52/image_06042025_21_52_33_9663.jpg', 2), ('/home/nano/Desktop/images/06042025/21/52/image_06042025_21_52_24_9666.jpg', 2), ('/home/nano/Desktop/images/06042025/21/51/image_06042025_21_52_03_9671.jpg', 2), ('/home/nano/Desktop/images/06042025/21/51/image_06042025_21_51_54_9649.jpg', 2), ('/home/nano/Desktop/images/06042025/19/54/image_06042025_19_54_54_10659.jpg', 2), ('/home/nano/Desktop/images/06042025/19/54/image_06042025_19_54_34_9648.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/21/52/image_06042025_21_52_33_9663.jpg', '/home/nano/Desktop/images/06042025/21/52/image_06042025_21_52_24_9666.jpg', '/home/nano/Desktop/images/06042025/21/51/image_06042025_21_52_03_9671.jpg', '/home/nano/Desktop/images/06042025/21/51/image_06042025_21_51_54_9649.jpg', '/home/nano/Desktop/images/06042025/19/54/image_06042025_19_54_54_10659.jpg', '/home/nano/Desktop/images/06042025/19/54/image_06042025_19_54_34_9648.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/21/52/image_06042025_21_52_33_9663.jpg
/home/nano/Desktop/images/06042025/21/52/image_06042025_21_52_24_9666.jpg
/home/nano/Desktop/images/06042025/21/51/image_06042025_21_52_03_9671.jpg
/home/nano/Desktop/images/06042025/21/51/image_06042025_21_51_54_9649.jpg
/home/nano/Desktop/images/06042025/19/54/image_06042025_19_54_54_10659.jpg
/home/nano/Desktop/images/06042025/19/54/image_06042025_19_54_34_9648.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350190917","1350190913","1350190921","1350190924","1350190909","1350190926"],"photo_ids_order":["1350190909","1350190913","1350190917","1350190921","1350190924","1350190926"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/05972ee11f574a3b2dae849681858d31.jpg","text":"TemporaryFile(/tmp/multipartBody780826533957473727asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969213883,"filename":"image_06042025_21_52_03_9671.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/61100f911bb6c2cf16c0e987b4e1c8c2.jpg","text":"TemporaryFile(/tmp/multipartBody3833015839735987080asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969213883,"filename":"image_06042025_21_52_24_9666.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f296cca61ba1bf68dec7285d8c87c97f.jpg","text":"TemporaryFile(/tmp/multipartBody8516410569980720178asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969213883,"filename":"image_06042025_21_51_54_9649.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/bf1257556531e540d7babc58eea33821.jpg","text":"TemporaryFile(/tmp/multipartBody4840602392170458859asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969213883,"filename":"image_06042025_19_54_54_10659.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e1f1c080bd324f9af91dc536671530fa.jpg","text":"TemporaryFile(/tmp/multipartBody8567519048872836421asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969213883,"filename":"image_06042025_21_52_33_9663.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/100dad718d60ebb0a4f1d65c2a6d8e38.jpg","text":"TemporaryFile(/tmp/multipartBody336506512560395036asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969213883,"filename":"image_06042025_19_54_34_9648.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350190917","file1":"1350190913","file0":"1350190909","file4":"1350190924","file5":"1350190926","file3":"1350190921"},"map_files_photo_id_array":[{"photo_id":"1350190926","filename":"file5"},{"photo_id":"1350190917","filename":"file2"},{"photo_id":"1350190924","filename":"file4"},{"photo_id":"1350190913","filename":"file1"},{"photo_id":"1350190909","filename":"file0"},{"photo_id":"1350190921","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350190917":["hashtag1","hashtag2"]},{"1350190913":["hashtag1","hashtag2"]},{"1350190921":["hashtag1","hashtag2"]},{"1350190924":["hashtag1","hashtag2"]},{"1350190909":["hashtag1","hashtag2"]},{"1350190926":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350190917, 1350190913, 1350190921, 1350190924, 1350190909, 1350190926)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.23739981651306 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 21:53:32.267951
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/21/53/image_06042025_21_53_24_10801.jpg', 2), ('/home/nano/Desktop/images/06042025/21/53/image_06042025_21_53_13_9812.jpg', 2), ('/home/nano/Desktop/images/06042025/21/52/image_06042025_21_53_03_9793.jpg', 2), ('/home/nano/Desktop/images/06042025/21/52/image_06042025_21_52_54_9644.jpg', 2), ('/home/nano/Desktop/images/06042025/19/54/image_06042025_19_54_24_10658.jpg', 2), ('/home/nano/Desktop/images/06042025/19/54/image_06042025_19_54_13_9664.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/21/53/image_06042025_21_53_24_10801.jpg', '/home/nano/Desktop/images/06042025/21/53/image_06042025_21_53_13_9812.jpg', '/home/nano/Desktop/images/06042025/21/52/image_06042025_21_53_03_9793.jpg', '/home/nano/Desktop/images/06042025/21/52/image_06042025_21_52_54_9644.jpg', '/home/nano/Desktop/images/06042025/19/54/image_06042025_19_54_24_10658.jpg', '/home/nano/Desktop/images/06042025/19/54/image_06042025_19_54_13_9664.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/21/53/image_06042025_21_53_24_10801.jpg
/home/nano/Desktop/images/06042025/21/53/image_06042025_21_53_13_9812.jpg
/home/nano/Desktop/images/06042025/21/52/image_06042025_21_53_03_9793.jpg
/home/nano/Desktop/images/06042025/21/52/image_06042025_21_52_54_9644.jpg
/home/nano/Desktop/images/06042025/19/54/image_06042025_19_54_24_10658.jpg
/home/nano/Desktop/images/06042025/19/54/image_06042025_19_54_13_9664.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350190961","1350190958","1350190946","1350190951","1350190942","1350190953"],"photo_ids_order":["1350190942","1350190946","1350190951","1350190953","1350190958","1350190961"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/0fff629af6676c4e86e64093aaf5dc95.jpg","text":"TemporaryFile(/tmp/multipartBody7047449250494507311asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969274421,"filename":"image_06042025_19_54_13_9664.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c0a5f60d1be0cc8fb2a3027531212db7.jpg","text":"TemporaryFile(/tmp/multipartBody4572595675299714181asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969274421,"filename":"image_06042025_19_54_24_10658.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/8f58c8631be0a994d8f7f8a2d1cf1ecc.jpg","text":"TemporaryFile(/tmp/multipartBody6499203271627045875asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969274421,"filename":"image_06042025_21_53_13_9812.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/bb5a15633a4c1e68670341f9f3e7c5fe.jpg","text":"TemporaryFile(/tmp/multipartBody4694064733842626874asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969274421,"filename":"image_06042025_21_53_03_9793.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/86082f8f5f6539cd745f1d779ee9f878.jpg","text":"TemporaryFile(/tmp/multipartBody4016742827590706608asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969274421,"filename":"image_06042025_21_53_24_10801.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ad9b2f82d0464cbdf38e1a3f8e9da3ba.jpg","text":"TemporaryFile(/tmp/multipartBody3967364920544893924asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969274421,"filename":"image_06042025_21_52_54_9644.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350190951","file1":"1350190946","file0":"1350190942","file4":"1350190958","file5":"1350190961","file3":"1350190953"},"map_files_photo_id_array":[{"photo_id":"1350190961","filename":"file5"},{"photo_id":"1350190951","filename":"file2"},{"photo_id":"1350190958","filename":"file4"},{"photo_id":"1350190946","filename":"file1"},{"photo_id":"1350190942","filename":"file0"},{"photo_id":"1350190953","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350190961":["hashtag1","hashtag2"]},{"1350190958":["hashtag1","hashtag2"]},{"1350190946":["hashtag1","hashtag2"]},{"1350190951":["hashtag1","hashtag2"]},{"1350190942":["hashtag1","hashtag2"]},{"1350190953":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350190961, 1350190958, 1350190946, 1350190951, 1350190942, 1350190953)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.75451469421387 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 21:54:32.387652
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/21/54/image_06042025_21_54_44_10577.jpg', 2), ('/home/nano/Desktop/images/06042025/21/54/image_06042025_21_54_24_10579.jpg', 2), ('/home/nano/Desktop/images/06042025/21/53/image_06042025_21_53_34_9791.jpg', 2), ('/home/nano/Desktop/images/06042025/19/53/image_06042025_19_54_04_9652.jpg', 2), ('/home/nano/Desktop/images/06042025/19/53/image_06042025_19_53_54_9778.jpg', 2), ('/home/nano/Desktop/images/06042025/19/53/image_06042025_19_53_44_10790.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/21/54/image_06042025_21_54_44_10577.jpg', '/home/nano/Desktop/images/06042025/21/54/image_06042025_21_54_24_10579.jpg', '/home/nano/Desktop/images/06042025/21/53/image_06042025_21_53_34_9791.jpg', '/home/nano/Desktop/images/06042025/19/53/image_06042025_19_54_04_9652.jpg', '/home/nano/Desktop/images/06042025/19/53/image_06042025_19_53_54_9778.jpg', '/home/nano/Desktop/images/06042025/19/53/image_06042025_19_53_44_10790.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/21/54/image_06042025_21_54_44_10577.jpg
/home/nano/Desktop/images/06042025/21/54/image_06042025_21_54_24_10579.jpg
/home/nano/Desktop/images/06042025/21/53/image_06042025_21_53_34_9791.jpg
/home/nano/Desktop/images/06042025/19/53/image_06042025_19_54_04_9652.jpg
/home/nano/Desktop/images/06042025/19/53/image_06042025_19_53_54_9778.jpg
/home/nano/Desktop/images/06042025/19/53/image_06042025_19_53_44_10790.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350190978","1350190980","1350190983","1350190986","1350190971","1350190974"],"photo_ids_order":["1350190971","1350190974","1350190978","1350190980","1350190983","1350190986"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ea14a9f40353b13af3ebb9fa32ea67cc.jpg","text":"TemporaryFile(/tmp/multipartBody486076416925619457asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969334112,"filename":"image_06042025_21_53_34_9791.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/3fb6edb4218b08a74b88f6a83a6b92f3.jpg","text":"TemporaryFile(/tmp/multipartBody4558524868685051270asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969334112,"filename":"image_06042025_19_54_04_9652.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/1ffcc1aa35d1061442cc87a11a870729.jpg","text":"TemporaryFile(/tmp/multipartBody1359927645677058515asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969334112,"filename":"image_06042025_19_53_54_9778.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/566e96c134e475f7677692948fdcf74d.jpg","text":"TemporaryFile(/tmp/multipartBody7652261824178839499asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969334112,"filename":"image_06042025_19_53_44_10790.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/df66e3c8e048bd4f7f95fe1adcd73718.jpg","text":"TemporaryFile(/tmp/multipartBody81836509301454025asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969334112,"filename":"image_06042025_21_54_44_10577.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/3c60ab6084ed2c6c0142ecc7c74d47bb.jpg","text":"TemporaryFile(/tmp/multipartBody1594121369315662888asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969334112,"filename":"image_06042025_21_54_24_10579.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350190978","file1":"1350190974","file0":"1350190971","file4":"1350190983","file5":"1350190986","file3":"1350190980"},"map_files_photo_id_array":[{"photo_id":"1350190986","filename":"file5"},{"photo_id":"1350190978","filename":"file2"},{"photo_id":"1350190983","filename":"file4"},{"photo_id":"1350190974","filename":"file1"},{"photo_id":"1350190971","filename":"file0"},{"photo_id":"1350190980","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350190978":["hashtag1","hashtag2"]},{"1350190980":["hashtag1","hashtag2"]},{"1350190983":["hashtag1","hashtag2"]},{"1350190986":["hashtag1","hashtag2"]},{"1350190971":["hashtag1","hashtag2"]},{"1350190974":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350190978, 1350190980, 1350190983, 1350190986, 1350190971, 1350190974)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 38.02729153633118 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 21:55:32.498296
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/21/55/image_06042025_21_55_44_9652.jpg', 2), ('/home/nano/Desktop/images/06042025/21/55/image_06042025_21_55_34_10810.jpg', 2), ('/home/nano/Desktop/images/06042025/21/55/image_06042025_21_55_23_9825.jpg', 2), ('/home/nano/Desktop/images/06042025/21/55/image_06042025_21_55_13_9830.jpg', 2), ('/home/nano/Desktop/images/06042025/21/54/image_06042025_21_55_04_9830.jpg', 2), ('/home/nano/Desktop/images/06042025/21/54/image_06042025_21_54_54_9813.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/21/55/image_06042025_21_55_44_9652.jpg', '/home/nano/Desktop/images/06042025/21/55/image_06042025_21_55_34_10810.jpg', '/home/nano/Desktop/images/06042025/21/55/image_06042025_21_55_23_9825.jpg', '/home/nano/Desktop/images/06042025/21/55/image_06042025_21_55_13_9830.jpg', '/home/nano/Desktop/images/06042025/21/54/image_06042025_21_55_04_9830.jpg', '/home/nano/Desktop/images/06042025/21/54/image_06042025_21_54_54_9813.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/21/55/image_06042025_21_55_44_9652.jpg
/home/nano/Desktop/images/06042025/21/55/image_06042025_21_55_34_10810.jpg
/home/nano/Desktop/images/06042025/21/55/image_06042025_21_55_23_9825.jpg
/home/nano/Desktop/images/06042025/21/55/image_06042025_21_55_13_9830.jpg
/home/nano/Desktop/images/06042025/21/54/image_06042025_21_55_04_9830.jpg
/home/nano/Desktop/images/06042025/21/54/image_06042025_21_54_54_9813.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350191019","1350191010","1350191015","1350191000","1350191005","1350191022"],"photo_ids_order":["1350191000","1350191005","1350191010","1350191015","1350191019","1350191022"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c35a577cf53c3c154e3c2ff9a8230277.jpg","text":"TemporaryFile(/tmp/multipartBody5418531930045473151asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969394387,"filename":"image_06042025_21_55_04_9830.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/57c58e7b9ba7e1bdc6fcfff011f635ec.jpg","text":"TemporaryFile(/tmp/multipartBody6112510171155745894asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969394387,"filename":"image_06042025_21_55_23_9825.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/eaac4287fb5ced938a693c0c4432413f.jpg","text":"TemporaryFile(/tmp/multipartBody2545596197476019389asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969394387,"filename":"image_06042025_21_55_13_9830.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e0885c09c9a45c13414c3219ec1e9b4e.jpg","text":"TemporaryFile(/tmp/multipartBody4909491534629701830asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969394387,"filename":"image_06042025_21_55_44_9652.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/dae7e5fea63611f4dcdd2f483850af44.jpg","text":"TemporaryFile(/tmp/multipartBody1139000789680878898asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969394387,"filename":"image_06042025_21_55_34_10810.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a664d4d9a7067ffe92d1325ef8f8f277.jpg","text":"TemporaryFile(/tmp/multipartBody7727980095376967327asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969394387,"filename":"image_06042025_21_54_54_9813.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350191010","file1":"1350191005","file0":"1350191000","file4":"1350191019","file5":"1350191022","file3":"1350191015"},"map_files_photo_id_array":[{"photo_id":"1350191022","filename":"file5"},{"photo_id":"1350191010","filename":"file2"},{"photo_id":"1350191019","filename":"file4"},{"photo_id":"1350191005","filename":"file1"},{"photo_id":"1350191000","filename":"file0"},{"photo_id":"1350191015","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350191019":["hashtag1","hashtag2"]},{"1350191010":["hashtag1","hashtag2"]},{"1350191015":["hashtag1","hashtag2"]},{"1350191000":["hashtag1","hashtag2"]},{"1350191005":["hashtag1","hashtag2"]},{"1350191022":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350191019, 1350191010, 1350191015, 1350191000, 1350191005, 1350191022)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 36.15952682495117 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 21:56:32.594165
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/21/56/image_06042025_21_56_44_10847.jpg', 2), ('/home/nano/Desktop/images/06042025/21/56/image_06042025_21_56_33_9837.jpg', 2), ('/home/nano/Desktop/images/06042025/21/56/image_06042025_21_56_23_9656.jpg', 2), ('/home/nano/Desktop/images/06042025/21/55/image_06042025_21_56_04_10671.jpg', 2), ('/home/nano/Desktop/images/06042025/21/55/image_06042025_21_55_53_9658.jpg', 2), ('/home/nano/Desktop/images/06042025/19/53/image_06042025_19_53_33_9775.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/21/56/image_06042025_21_56_44_10847.jpg', '/home/nano/Desktop/images/06042025/21/56/image_06042025_21_56_33_9837.jpg', '/home/nano/Desktop/images/06042025/21/56/image_06042025_21_56_23_9656.jpg', '/home/nano/Desktop/images/06042025/21/55/image_06042025_21_56_04_10671.jpg', '/home/nano/Desktop/images/06042025/21/55/image_06042025_21_55_53_9658.jpg', '/home/nano/Desktop/images/06042025/19/53/image_06042025_19_53_33_9775.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/21/56/image_06042025_21_56_44_10847.jpg
/home/nano/Desktop/images/06042025/21/56/image_06042025_21_56_33_9837.jpg
/home/nano/Desktop/images/06042025/21/56/image_06042025_21_56_23_9656.jpg
/home/nano/Desktop/images/06042025/21/55/image_06042025_21_56_04_10671.jpg
/home/nano/Desktop/images/06042025/21/55/image_06042025_21_55_53_9658.jpg
/home/nano/Desktop/images/06042025/19/53/image_06042025_19_53_33_9775.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350191075","1350191071","1350191056","1350191073","1350191067","1350191046"],"photo_ids_order":["1350191046","1350191056","1350191067","1350191071","1350191073","1350191075"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/d12418fc9b5d33fbf50fedf8f1c32bd6.jpg","text":"TemporaryFile(/tmp/multipartBody7684728383247607537asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969454681,"filename":"image_06042025_19_53_33_9775.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/217742bcf56e8742d1001d13150e30c4.jpg","text":"TemporaryFile(/tmp/multipartBody2271863059368601533asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969454681,"filename":"image_06042025_21_56_04_10671.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/fea7bed03b254088927bc7e4c6a43e6c.jpg","text":"TemporaryFile(/tmp/multipartBody8398834544203373393asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969454681,"filename":"image_06042025_21_56_33_9837.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f37039f73341deddda68386345bcf502.jpg","text":"TemporaryFile(/tmp/multipartBody4585712798152030072asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969454681,"filename":"image_06042025_21_55_53_9658.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/0497e1e3d0897c786286c09e8d0607f4.jpg","text":"TemporaryFile(/tmp/multipartBody5880312089768317146asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969454681,"filename":"image_06042025_21_56_23_9656.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/eaabf2abc3d748142971493f0a49a979.jpg","text":"TemporaryFile(/tmp/multipartBody4989381906280222252asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969454681,"filename":"image_06042025_21_56_44_10847.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350191067","file1":"1350191056","file0":"1350191046","file4":"1350191073","file5":"1350191075","file3":"1350191071"},"map_files_photo_id_array":[{"photo_id":"1350191075","filename":"file5"},{"photo_id":"1350191067","filename":"file2"},{"photo_id":"1350191073","filename":"file4"},{"photo_id":"1350191056","filename":"file1"},{"photo_id":"1350191046","filename":"file0"},{"photo_id":"1350191071","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350191075":["hashtag1","hashtag2"]},{"1350191071":["hashtag1","hashtag2"]},{"1350191056":["hashtag1","hashtag2"]},{"1350191073":["hashtag1","hashtag2"]},{"1350191067":["hashtag1","hashtag2"]},{"1350191046":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350191075, 1350191071, 1350191056, 1350191073, 1350191067, 1350191046)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 36.1726861000061 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 21:57:32.698842
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/21/57/image_06042025_21_57_44_9804.jpg', 2), ('/home/nano/Desktop/images/06042025/21/57/image_06042025_21_57_34_10813.jpg', 2), ('/home/nano/Desktop/images/06042025/21/57/image_06042025_21_57_23_9783.jpg', 2), ('/home/nano/Desktop/images/06042025/21/57/image_06042025_21_57_14_9800.jpg', 2), ('/home/nano/Desktop/images/06042025/21/56/image_06042025_21_57_04_9814.jpg', 2), ('/home/nano/Desktop/images/06042025/21/56/image_06042025_21_56_54_9857.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/21/57/image_06042025_21_57_44_9804.jpg', '/home/nano/Desktop/images/06042025/21/57/image_06042025_21_57_34_10813.jpg', '/home/nano/Desktop/images/06042025/21/57/image_06042025_21_57_23_9783.jpg', '/home/nano/Desktop/images/06042025/21/57/image_06042025_21_57_14_9800.jpg', '/home/nano/Desktop/images/06042025/21/56/image_06042025_21_57_04_9814.jpg', '/home/nano/Desktop/images/06042025/21/56/image_06042025_21_56_54_9857.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/21/57/image_06042025_21_57_44_9804.jpg
/home/nano/Desktop/images/06042025/21/57/image_06042025_21_57_34_10813.jpg
/home/nano/Desktop/images/06042025/21/57/image_06042025_21_57_23_9783.jpg
/home/nano/Desktop/images/06042025/21/57/image_06042025_21_57_14_9800.jpg
/home/nano/Desktop/images/06042025/21/56/image_06042025_21_57_04_9814.jpg
/home/nano/Desktop/images/06042025/21/56/image_06042025_21_56_54_9857.jpg
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 21:58:02.336864
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/21/57/image_06042025_21_57_44_9804.jpg', 2), ('/home/nano/Desktop/images/06042025/21/57/image_06042025_21_57_34_10813.jpg', 2), ('/home/nano/Desktop/images/06042025/21/57/image_06042025_21_57_23_9783.jpg', 2), ('/home/nano/Desktop/images/06042025/21/57/image_06042025_21_57_14_9800.jpg', 2), ('/home/nano/Desktop/images/06042025/21/56/image_06042025_21_57_04_9814.jpg', 2), ('/home/nano/Desktop/images/06042025/21/56/image_06042025_21_56_54_9857.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/21/57/image_06042025_21_57_44_9804.jpg', '/home/nano/Desktop/images/06042025/21/57/image_06042025_21_57_34_10813.jpg', '/home/nano/Desktop/images/06042025/21/57/image_06042025_21_57_23_9783.jpg', '/home/nano/Desktop/images/06042025/21/57/image_06042025_21_57_14_9800.jpg', '/home/nano/Desktop/images/06042025/21/56/image_06042025_21_57_04_9814.jpg', '/home/nano/Desktop/images/06042025/21/56/image_06042025_21_56_54_9857.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/21/57/image_06042025_21_57_44_9804.jpg
/home/nano/Desktop/images/06042025/21/57/image_06042025_21_57_34_10813.jpg
/home/nano/Desktop/images/06042025/21/57/image_06042025_21_57_23_9783.jpg
/home/nano/Desktop/images/06042025/21/57/image_06042025_21_57_14_9800.jpg
/home/nano/Desktop/images/06042025/21/56/image_06042025_21_57_04_9814.jpg
/home/nano/Desktop/images/06042025/21/56/image_06042025_21_56_54_9857.jpg
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350191158","1350191131","1350191155","1350191149","1350191160","1350191157"],"photo_ids_order":["1350191131","1350191149","1350191155","1350191157","1350191158","1350191160"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/32126cd6748e5e9d69dbf972124a1091.jpg","text":"TemporaryFile(/tmp/multipartBody4885574732157335235asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969544414,"filename":"image_06042025_21_57_04_9814.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/70ff9f0c74c5eb54f44b05ac6a86634f.jpg","text":"TemporaryFile(/tmp/multipartBody7102161530864557485asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969544414,"filename":"image_06042025_21_57_44_9804.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/424efc59049bb09032e37ed14bd146bd.jpg","text":"TemporaryFile(/tmp/multipartBody6353255263603056214asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969544414,"filename":"image_06042025_21_57_23_9783.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/96d7d7e616e983ab3dd67fdb5dcc3f1f.jpg","text":"TemporaryFile(/tmp/multipartBody4620097813265495700asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969544414,"filename":"image_06042025_21_57_34_10813.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4aed30019f8568cc890795b2345d192c.jpg","text":"TemporaryFile(/tmp/multipartBody8225464796272077734asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969544414,"filename":"image_06042025_21_56_54_9857.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/62e007161460099415342394d2fa98be.jpg","text":"TemporaryFile(/tmp/multipartBody5144060529730499322asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969544414,"filename":"image_06042025_21_57_14_9800.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350191155","file1":"1350191149","file0":"1350191131","file4":"1350191158","file5":"1350191160","file3":"1350191157"},"map_files_photo_id_array":[{"photo_id":"1350191160","filename":"file5"},{"photo_id":"1350191155","filename":"file2"},{"photo_id":"1350191158","filename":"file4"},{"photo_id":"1350191149","filename":"file1"},{"photo_id":"1350191131","filename":"file0"},{"photo_id":"1350191157","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350191158":["hashtag1","hashtag2"]},{"1350191131":["hashtag1","hashtag2"]},{"1350191155":["hashtag1","hashtag2"]},{"1350191149":["hashtag1","hashtag2"]},{"1350191160":["hashtag1","hashtag2"]},{"1350191157":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350191158, 1350191131, 1350191155, 1350191149, 1350191160, 1350191157)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.37949347496033 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 21:59:03.584660
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/21/58/image_06042025_21_58_44_9645.jpg', 2), ('/home/nano/Desktop/images/06042025/21/58/image_06042025_21_58_34_10827.jpg', 2), ('/home/nano/Desktop/images/06042025/21/58/image_06042025_21_58_23_9821.jpg', 2), ('/home/nano/Desktop/images/06042025/21/58/image_06042025_21_58_13_9840.jpg', 2), ('/home/nano/Desktop/images/06042025/21/57/image_06042025_21_58_04_9831.jpg', 2), ('/home/nano/Desktop/images/06042025/21/57/image_06042025_21_57_54_9814.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/21/58/image_06042025_21_58_44_9645.jpg', '/home/nano/Desktop/images/06042025/21/58/image_06042025_21_58_34_10827.jpg', '/home/nano/Desktop/images/06042025/21/58/image_06042025_21_58_23_9821.jpg', '/home/nano/Desktop/images/06042025/21/58/image_06042025_21_58_13_9840.jpg', '/home/nano/Desktop/images/06042025/21/57/image_06042025_21_58_04_9831.jpg', '/home/nano/Desktop/images/06042025/21/57/image_06042025_21_57_54_9814.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/21/58/image_06042025_21_58_44_9645.jpg
/home/nano/Desktop/images/06042025/21/58/image_06042025_21_58_34_10827.jpg
/home/nano/Desktop/images/06042025/21/58/image_06042025_21_58_23_9821.jpg
/home/nano/Desktop/images/06042025/21/58/image_06042025_21_58_13_9840.jpg
/home/nano/Desktop/images/06042025/21/57/image_06042025_21_58_04_9831.jpg
/home/nano/Desktop/images/06042025/21/57/image_06042025_21_57_54_9814.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350191192","1350191186","1350191203","1350191196","1350191181","1350191184"],"photo_ids_order":["1350191181","1350191184","1350191186","1350191192","1350191196","1350191203"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/0ea4cc52754690108d2a4a3c839ed83b.jpg","text":"TemporaryFile(/tmp/multipartBody6470850049137069327asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969605327,"filename":"image_06042025_21_58_13_9840.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/5da93045b708ea834e17d1f1a3113dff.jpg","text":"TemporaryFile(/tmp/multipartBody745702020379891402asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969605327,"filename":"image_06042025_21_58_23_9821.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/1dee1f5ac95826c991938b3d72263700.jpg","text":"TemporaryFile(/tmp/multipartBody5737928603669979886asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969605327,"filename":"image_06042025_21_57_54_9814.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e53f6cfd468b27c7c2960bcd9b2d9079.jpg","text":"TemporaryFile(/tmp/multipartBody4036144177507347106asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969605327,"filename":"image_06042025_21_58_04_9831.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/9df79c665892145e14cb3ef0efc66c27.jpg","text":"TemporaryFile(/tmp/multipartBody8540565612727411880asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969605327,"filename":"image_06042025_21_58_44_9645.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b0d5251d6f5db8e319d87f3f3ad3f73f.jpg","text":"TemporaryFile(/tmp/multipartBody7659514492336352147asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969605327,"filename":"image_06042025_21_58_34_10827.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350191186","file1":"1350191184","file0":"1350191181","file4":"1350191196","file5":"1350191203","file3":"1350191192"},"map_files_photo_id_array":[{"photo_id":"1350191203","filename":"file5"},{"photo_id":"1350191186","filename":"file2"},{"photo_id":"1350191196","filename":"file4"},{"photo_id":"1350191184","filename":"file1"},{"photo_id":"1350191181","filename":"file0"},{"photo_id":"1350191192","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350191192":["hashtag1","hashtag2"]},{"1350191186":["hashtag1","hashtag2"]},{"1350191203":["hashtag1","hashtag2"]},{"1350191196":["hashtag1","hashtag2"]},{"1350191181":["hashtag1","hashtag2"]},{"1350191184":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350191192, 1350191186, 1350191203, 1350191196, 1350191181, 1350191184)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.04740023612976 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 22:00:02.517046
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/21/59/image_06042025_21_59_44_9658.jpg', 2), ('/home/nano/Desktop/images/06042025/21/59/image_06042025_21_59_23_9658.jpg', 2), ('/home/nano/Desktop/images/06042025/21/59/image_06042025_21_59_14_9681.jpg', 2), ('/home/nano/Desktop/images/06042025/21/58/image_06042025_21_59_04_10657.jpg', 2), ('/home/nano/Desktop/images/06042025/21/58/image_06042025_21_58_53_9779.jpg', 2), ('/home/nano/Desktop/images/06042025/19/53/image_06042025_19_53_24_9779.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/21/59/image_06042025_21_59_44_9658.jpg', '/home/nano/Desktop/images/06042025/21/59/image_06042025_21_59_23_9658.jpg', '/home/nano/Desktop/images/06042025/21/59/image_06042025_21_59_14_9681.jpg', '/home/nano/Desktop/images/06042025/21/58/image_06042025_21_59_04_10657.jpg', '/home/nano/Desktop/images/06042025/21/58/image_06042025_21_58_53_9779.jpg', '/home/nano/Desktop/images/06042025/19/53/image_06042025_19_53_24_9779.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/21/59/image_06042025_21_59_44_9658.jpg
/home/nano/Desktop/images/06042025/21/59/image_06042025_21_59_23_9658.jpg
/home/nano/Desktop/images/06042025/21/59/image_06042025_21_59_14_9681.jpg
/home/nano/Desktop/images/06042025/21/58/image_06042025_21_59_04_10657.jpg
/home/nano/Desktop/images/06042025/21/58/image_06042025_21_58_53_9779.jpg
/home/nano/Desktop/images/06042025/19/53/image_06042025_19_53_24_9779.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350191246","1350191240","1350191258","1350191231","1350191236","1350191226"],"photo_ids_order":["1350191226","1350191231","1350191236","1350191240","1350191246","1350191258"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c244812e742aa15877ef891b45be11ab.jpg","text":"TemporaryFile(/tmp/multipartBody6854685178537162734asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969666350,"filename":"image_06042025_21_58_53_9779.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b001e0d07b841eaee1bfd0776e2887c2.jpg","text":"TemporaryFile(/tmp/multipartBody3369737598391521021asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969666350,"filename":"image_06042025_21_59_04_10657.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/6f2ab4c92a6df825c9925d62cb0014f1.jpg","text":"TemporaryFile(/tmp/multipartBody5532709937471993862asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969666350,"filename":"image_06042025_19_53_24_9779.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/9ba3e7e50ca550f7c039a99560034f92.jpg","text":"TemporaryFile(/tmp/multipartBody1980791702525321024asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969666350,"filename":"image_06042025_21_59_23_9658.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/7e46c98bef918589de73d2dbbd2e5142.jpg","text":"TemporaryFile(/tmp/multipartBody4056857834164979944asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969666350,"filename":"image_06042025_21_59_14_9681.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/5ff500a1e020398df38a6b702c5673a8.jpg","text":"TemporaryFile(/tmp/multipartBody16044191563572555asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969666350,"filename":"image_06042025_21_59_44_9658.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350191236","file1":"1350191231","file0":"1350191226","file4":"1350191246","file5":"1350191258","file3":"1350191240"},"map_files_photo_id_array":[{"photo_id":"1350191258","filename":"file5"},{"photo_id":"1350191236","filename":"file2"},{"photo_id":"1350191246","filename":"file4"},{"photo_id":"1350191231","filename":"file1"},{"photo_id":"1350191226","filename":"file0"},{"photo_id":"1350191240","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350191246":["hashtag1","hashtag2"]},{"1350191240":["hashtag1","hashtag2"]},{"1350191258":["hashtag1","hashtag2"]},{"1350191231":["hashtag1","hashtag2"]},{"1350191236":["hashtag1","hashtag2"]},{"1350191226":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350191246, 1350191240, 1350191258, 1350191231, 1350191236, 1350191226)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 36.25260066986084 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 22:01:02.795787
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/22/00/image_06042025_22_00_44_10646.jpg', 2), ('/home/nano/Desktop/images/06042025/22/00/image_06042025_22_00_33_9738.jpg', 2), ('/home/nano/Desktop/images/06042025/22/00/image_06042025_22_00_24_9766.jpg', 2), ('/home/nano/Desktop/images/06042025/22/00/image_06042025_22_00_14_9687.jpg', 2), ('/home/nano/Desktop/images/06042025/21/59/image_06042025_22_00_04_10670.jpg', 2), ('/home/nano/Desktop/images/06042025/21/59/image_06042025_21_59_53_9641.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/22/00/image_06042025_22_00_44_10646.jpg', '/home/nano/Desktop/images/06042025/22/00/image_06042025_22_00_33_9738.jpg', '/home/nano/Desktop/images/06042025/22/00/image_06042025_22_00_24_9766.jpg', '/home/nano/Desktop/images/06042025/22/00/image_06042025_22_00_14_9687.jpg', '/home/nano/Desktop/images/06042025/21/59/image_06042025_22_00_04_10670.jpg', '/home/nano/Desktop/images/06042025/21/59/image_06042025_21_59_53_9641.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/22/00/image_06042025_22_00_44_10646.jpg
/home/nano/Desktop/images/06042025/22/00/image_06042025_22_00_33_9738.jpg
/home/nano/Desktop/images/06042025/22/00/image_06042025_22_00_24_9766.jpg
/home/nano/Desktop/images/06042025/22/00/image_06042025_22_00_14_9687.jpg
/home/nano/Desktop/images/06042025/21/59/image_06042025_22_00_04_10670.jpg
/home/nano/Desktop/images/06042025/21/59/image_06042025_21_59_53_9641.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350191278","1350191287","1350191292","1350191274","1350191271","1350191282"],"photo_ids_order":["1350191271","1350191274","1350191278","1350191282","1350191287","1350191292"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e8157d6d6505930524f482b619f64f7a.jpg","text":"TemporaryFile(/tmp/multipartBody7821778717284205114asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969724693,"filename":"image_06042025_22_00_24_9766.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/d4272a5cfa9f4d2365243cdb39e646c5.jpg","text":"TemporaryFile(/tmp/multipartBody1653751605183590452asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969724693,"filename":"image_06042025_22_00_04_10670.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/eedd2ca1fedc60d6ae9b7d12afcb0008.jpg","text":"TemporaryFile(/tmp/multipartBody1627684546057448872asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969724693,"filename":"image_06042025_21_59_53_9641.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/aa9b6f771fba14244ce6c8d045a5af7b.jpg","text":"TemporaryFile(/tmp/multipartBody6777885001634202437asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969724693,"filename":"image_06042025_22_00_33_9738.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/0d26c6125277bd26f9a898e0a21c8f0e.jpg","text":"TemporaryFile(/tmp/multipartBody7885866251842542056asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969724693,"filename":"image_06042025_22_00_44_10646.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/bd22de06a22b0fcdf25ea3282b27ede2.jpg","text":"TemporaryFile(/tmp/multipartBody6865004059627725782asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969724693,"filename":"image_06042025_22_00_14_9687.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350191278","file1":"1350191274","file0":"1350191271","file4":"1350191287","file5":"1350191292","file3":"1350191282"},"map_files_photo_id_array":[{"photo_id":"1350191292","filename":"file5"},{"photo_id":"1350191278","filename":"file2"},{"photo_id":"1350191287","filename":"file4"},{"photo_id":"1350191274","filename":"file1"},{"photo_id":"1350191271","filename":"file0"},{"photo_id":"1350191282","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350191278":["hashtag1","hashtag2"]},{"1350191287":["hashtag1","hashtag2"]},{"1350191292":["hashtag1","hashtag2"]},{"1350191274":["hashtag1","hashtag2"]},{"1350191271":["hashtag1","hashtag2"]},{"1350191282":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350191278, 1350191287, 1350191292, 1350191274, 1350191271, 1350191282)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.47526431083679 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 22:02:02.453125
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/22/01/image_06042025_22_01_44_10800.jpg', 2), ('/home/nano/Desktop/images/06042025/22/01/image_06042025_22_01_33_9640.jpg', 2), ('/home/nano/Desktop/images/06042025/22/01/image_06042025_22_01_24_9640.jpg', 2), ('/home/nano/Desktop/images/06042025/22/01/image_06042025_22_01_14_10672.jpg', 2), ('/home/nano/Desktop/images/06042025/22/00/image_06042025_22_01_03_9663.jpg', 2), ('/home/nano/Desktop/images/06042025/22/00/image_06042025_22_00_54_9644.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/22/01/image_06042025_22_01_44_10800.jpg', '/home/nano/Desktop/images/06042025/22/01/image_06042025_22_01_33_9640.jpg', '/home/nano/Desktop/images/06042025/22/01/image_06042025_22_01_24_9640.jpg', '/home/nano/Desktop/images/06042025/22/01/image_06042025_22_01_14_10672.jpg', '/home/nano/Desktop/images/06042025/22/00/image_06042025_22_01_03_9663.jpg', '/home/nano/Desktop/images/06042025/22/00/image_06042025_22_00_54_9644.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/22/01/image_06042025_22_01_44_10800.jpg
/home/nano/Desktop/images/06042025/22/01/image_06042025_22_01_33_9640.jpg
/home/nano/Desktop/images/06042025/22/01/image_06042025_22_01_24_9640.jpg
/home/nano/Desktop/images/06042025/22/01/image_06042025_22_01_14_10672.jpg
/home/nano/Desktop/images/06042025/22/00/image_06042025_22_01_03_9663.jpg
/home/nano/Desktop/images/06042025/22/00/image_06042025_22_00_54_9644.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350191377","1350191410","1350191401","1350191385","1350191379","1350191382"],"photo_ids_order":["1350191377","1350191379","1350191382","1350191385","1350191401","1350191410"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/6c40144adbb423d5417a8cd517c88198.jpg","text":"TemporaryFile(/tmp/multipartBody8196002096105502844asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969784234,"filename":"image_06042025_22_01_44_10800.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e6e4425dd84863baed8cf6b5e54fdb5f.jpg","text":"TemporaryFile(/tmp/multipartBody4575529307853347299asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969784234,"filename":"image_06042025_22_00_54_9644.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/805a707519c3bcce7a11c0e72583ee15.jpg","text":"TemporaryFile(/tmp/multipartBody6017360356268252600asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969784234,"filename":"image_06042025_22_01_03_9663.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/11fa48dfa1c7fe49f70063e3cde4c62b.jpg","text":"TemporaryFile(/tmp/multipartBody8697416439608255148asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969784234,"filename":"image_06042025_22_01_14_10672.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/723ee5bf7b5aa1e2f5cb324aa640e20c.jpg","text":"TemporaryFile(/tmp/multipartBody2509881648745218211asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969784234,"filename":"image_06042025_22_01_33_9640.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/fb3b29e975b4f370b8050ebba72a96e5.jpg","text":"TemporaryFile(/tmp/multipartBody1852703778539568901asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969784234,"filename":"image_06042025_22_01_24_9640.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350191382","file1":"1350191379","file0":"1350191377","file4":"1350191401","file5":"1350191410","file3":"1350191385"},"map_files_photo_id_array":[{"photo_id":"1350191410","filename":"file5"},{"photo_id":"1350191382","filename":"file2"},{"photo_id":"1350191401","filename":"file4"},{"photo_id":"1350191379","filename":"file1"},{"photo_id":"1350191377","filename":"file0"},{"photo_id":"1350191385","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350191377":["hashtag1","hashtag2"]},{"1350191410":["hashtag1","hashtag2"]},{"1350191401":["hashtag1","hashtag2"]},{"1350191385":["hashtag1","hashtag2"]},{"1350191379":["hashtag1","hashtag2"]},{"1350191382":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350191377, 1350191410, 1350191401, 1350191385, 1350191379, 1350191382)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.90045619010925 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 22:03:02.652682
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/22/02/image_06042025_22_02_44_9654.jpg', 2), ('/home/nano/Desktop/images/06042025/22/02/image_06042025_22_02_34_10664.jpg', 2), ('/home/nano/Desktop/images/06042025/22/02/image_06042025_22_02_23_9785.jpg', 2), ('/home/nano/Desktop/images/06042025/22/02/image_06042025_22_02_13_9802.jpg', 2), ('/home/nano/Desktop/images/06042025/22/01/image_06042025_22_02_04_9817.jpg', 2), ('/home/nano/Desktop/images/06042025/22/01/image_06042025_22_01_54_9773.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/22/02/image_06042025_22_02_44_9654.jpg', '/home/nano/Desktop/images/06042025/22/02/image_06042025_22_02_34_10664.jpg', '/home/nano/Desktop/images/06042025/22/02/image_06042025_22_02_23_9785.jpg', '/home/nano/Desktop/images/06042025/22/02/image_06042025_22_02_13_9802.jpg', '/home/nano/Desktop/images/06042025/22/01/image_06042025_22_02_04_9817.jpg', '/home/nano/Desktop/images/06042025/22/01/image_06042025_22_01_54_9773.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/22/02/image_06042025_22_02_44_9654.jpg
/home/nano/Desktop/images/06042025/22/02/image_06042025_22_02_34_10664.jpg
/home/nano/Desktop/images/06042025/22/02/image_06042025_22_02_23_9785.jpg
/home/nano/Desktop/images/06042025/22/02/image_06042025_22_02_13_9802.jpg
/home/nano/Desktop/images/06042025/22/01/image_06042025_22_02_04_9817.jpg
/home/nano/Desktop/images/06042025/22/01/image_06042025_22_01_54_9773.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350191837","1350191842","1350191818","1350191850","1350191919","1350191820"],"photo_ids_order":["1350191818","1350191820","1350191837","1350191842","1350191850","1350191919"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/5f261ea8cce5cce789c730b7c1fbca2a.jpg","text":"TemporaryFile(/tmp/multipartBody5024398705189795155asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969844424,"filename":"image_06042025_22_02_23_9785.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/38855bef3b749b3d39bc872bc75efaee.jpg","text":"TemporaryFile(/tmp/multipartBody7691382912514437207asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969844424,"filename":"image_06042025_22_02_13_9802.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f01d04ff782fd8297e0c652baa7ae70d.jpg","text":"TemporaryFile(/tmp/multipartBody5017998228193147878asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969844424,"filename":"image_06042025_22_02_44_9654.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/339532281460f779d5a9470d90ea5d55.jpg","text":"TemporaryFile(/tmp/multipartBody6951903385278961477asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969844424,"filename":"image_06042025_22_02_04_9817.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/346b1ac1437af9288130391eb5699610.jpg","text":"TemporaryFile(/tmp/multipartBody1265282930821554969asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969844424,"filename":"image_06042025_22_01_54_9773.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/9645a3ff5b91f0b9b8200d86d32b6797.jpg","text":"TemporaryFile(/tmp/multipartBody4577599419278507285asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969844424,"filename":"image_06042025_22_02_34_10664.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350191837","file1":"1350191820","file0":"1350191818","file4":"1350191850","file5":"1350191919","file3":"1350191842"},"map_files_photo_id_array":[{"photo_id":"1350191919","filename":"file5"},{"photo_id":"1350191837","filename":"file2"},{"photo_id":"1350191850","filename":"file4"},{"photo_id":"1350191820","filename":"file1"},{"photo_id":"1350191818","filename":"file0"},{"photo_id":"1350191842","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350191837":["hashtag1","hashtag2"]},{"1350191842":["hashtag1","hashtag2"]},{"1350191818":["hashtag1","hashtag2"]},{"1350191850":["hashtag1","hashtag2"]},{"1350191919":["hashtag1","hashtag2"]},{"1350191820":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350191837, 1350191842, 1350191818, 1350191850, 1350191919, 1350191820)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 36.80048632621765 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 22:04:03.035271
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/22/03/image_06042025_22_03_43_9640.jpg', 2), ('/home/nano/Desktop/images/06042025/22/03/image_06042025_22_03_24_10646.jpg', 2), ('/home/nano/Desktop/images/06042025/22/03/image_06042025_22_03_13_9653.jpg', 2), ('/home/nano/Desktop/images/06042025/22/02/image_06042025_22_03_04_9640.jpg', 2), ('/home/nano/Desktop/images/06042025/22/02/image_06042025_22_02_54_10647.jpg', 2), ('/home/nano/Desktop/images/06042025/19/53/image_06042025_19_53_14_9802.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/22/03/image_06042025_22_03_43_9640.jpg', '/home/nano/Desktop/images/06042025/22/03/image_06042025_22_03_24_10646.jpg', '/home/nano/Desktop/images/06042025/22/03/image_06042025_22_03_13_9653.jpg', '/home/nano/Desktop/images/06042025/22/02/image_06042025_22_03_04_9640.jpg', '/home/nano/Desktop/images/06042025/22/02/image_06042025_22_02_54_10647.jpg', '/home/nano/Desktop/images/06042025/19/53/image_06042025_19_53_14_9802.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/22/03/image_06042025_22_03_43_9640.jpg
/home/nano/Desktop/images/06042025/22/03/image_06042025_22_03_24_10646.jpg
/home/nano/Desktop/images/06042025/22/03/image_06042025_22_03_13_9653.jpg
/home/nano/Desktop/images/06042025/22/02/image_06042025_22_03_04_9640.jpg
/home/nano/Desktop/images/06042025/22/02/image_06042025_22_02_54_10647.jpg
/home/nano/Desktop/images/06042025/19/53/image_06042025_19_53_14_9802.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350192061","1350192079","1350192075","1350192057","1350192071","1350192059"],"photo_ids_order":["1350192057","1350192059","1350192061","1350192071","1350192075","1350192079"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/fa6f59d0fdbd0b7ab98b5de56c15b6a7.jpg","text":"TemporaryFile(/tmp/multipartBody735786167412363869asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969905063,"filename":"image_06042025_22_03_13_9653.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a8046641fcf3408e344ca786097b03ca.jpg","text":"TemporaryFile(/tmp/multipartBody8038625595642481615asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969905063,"filename":"image_06042025_19_53_14_9802.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/1639826f2c513364d4ee27e77df15db6.jpg","text":"TemporaryFile(/tmp/multipartBody795632671992906284asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969905063,"filename":"image_06042025_22_02_54_10647.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/439792d598de4822b513d8bc6f7ae025.jpg","text":"TemporaryFile(/tmp/multipartBody60445305941432259asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969905063,"filename":"image_06042025_22_03_43_9640.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/9da89711e2f6d7273e38c022790e9a91.jpg","text":"TemporaryFile(/tmp/multipartBody5556043695133794172asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969905063,"filename":"image_06042025_22_03_04_9640.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a9a5ccbd063b584b7cda2cc6f57a43e5.jpg","text":"TemporaryFile(/tmp/multipartBody2796720281842709064asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969905063,"filename":"image_06042025_22_03_24_10646.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350192061","file1":"1350192059","file0":"1350192057","file4":"1350192075","file5":"1350192079","file3":"1350192071"},"map_files_photo_id_array":[{"photo_id":"1350192079","filename":"file5"},{"photo_id":"1350192061","filename":"file2"},{"photo_id":"1350192075","filename":"file4"},{"photo_id":"1350192059","filename":"file1"},{"photo_id":"1350192057","filename":"file0"},{"photo_id":"1350192071","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350192061":["hashtag1","hashtag2"]},{"1350192079":["hashtag1","hashtag2"]},{"1350192075":["hashtag1","hashtag2"]},{"1350192057":["hashtag1","hashtag2"]},{"1350192071":["hashtag1","hashtag2"]},{"1350192059":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350192061, 1350192079, 1350192075, 1350192057, 1350192071, 1350192059)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 47.23131084442139 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 22:05:03.138853
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/22/04/image_06042025_22_04_43_9640.jpg', 2), ('/home/nano/Desktop/images/06042025/22/04/image_06042025_22_04_34_9639.jpg', 2), ('/home/nano/Desktop/images/06042025/22/04/image_06042025_22_04_24_10652.jpg', 2), ('/home/nano/Desktop/images/06042025/22/04/image_06042025_22_04_13_9658.jpg', 2), ('/home/nano/Desktop/images/06042025/22/03/image_06042025_22_04_04_9641.jpg', 2), ('/home/nano/Desktop/images/06042025/22/03/image_06042025_22_03_54_10648.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/22/04/image_06042025_22_04_43_9640.jpg', '/home/nano/Desktop/images/06042025/22/04/image_06042025_22_04_34_9639.jpg', '/home/nano/Desktop/images/06042025/22/04/image_06042025_22_04_24_10652.jpg', '/home/nano/Desktop/images/06042025/22/04/image_06042025_22_04_13_9658.jpg', '/home/nano/Desktop/images/06042025/22/03/image_06042025_22_04_04_9641.jpg', '/home/nano/Desktop/images/06042025/22/03/image_06042025_22_03_54_10648.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/22/04/image_06042025_22_04_43_9640.jpg
/home/nano/Desktop/images/06042025/22/04/image_06042025_22_04_34_9639.jpg
/home/nano/Desktop/images/06042025/22/04/image_06042025_22_04_24_10652.jpg
/home/nano/Desktop/images/06042025/22/04/image_06042025_22_04_13_9658.jpg
/home/nano/Desktop/images/06042025/22/03/image_06042025_22_04_04_9641.jpg
/home/nano/Desktop/images/06042025/22/03/image_06042025_22_03_54_10648.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350192122","1350192110","1350192094","1350192112","1350192100","1350192096"],"photo_ids_order":["1350192094","1350192096","1350192100","1350192110","1350192112","1350192122"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/62b99116961d6c9c5422694593409fa3.jpg","text":"TemporaryFile(/tmp/multipartBody2344390264052616535asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969964705,"filename":"image_06042025_22_03_54_10648.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ce9bc9119bb4a7625cc078e51ea70138.jpg","text":"TemporaryFile(/tmp/multipartBody3834582779381241515asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969964705,"filename":"image_06042025_22_04_13_9658.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/78fcab444c60c0dbede231c46b83c900.jpg","text":"TemporaryFile(/tmp/multipartBody4964980256478924542asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969964705,"filename":"image_06042025_22_04_43_9640.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4998a8c1c539a55f7e98ffc81d982c6c.jpg","text":"TemporaryFile(/tmp/multipartBody435629140489599058asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969964705,"filename":"image_06042025_22_04_04_9641.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/aedeb934e2e8b5359d21c28fd59bfed0.jpg","text":"TemporaryFile(/tmp/multipartBody2817827059890743325asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969964705,"filename":"image_06042025_22_04_24_10652.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/6d04145aaebf9668fb006cd52a1bae99.jpg","text":"TemporaryFile(/tmp/multipartBody1999289030681034073asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743969964705,"filename":"image_06042025_22_04_34_9639.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350192100","file1":"1350192096","file0":"1350192094","file4":"1350192112","file5":"1350192122","file3":"1350192110"},"map_files_photo_id_array":[{"photo_id":"1350192122","filename":"file5"},{"photo_id":"1350192100","filename":"file2"},{"photo_id":"1350192112","filename":"file4"},{"photo_id":"1350192096","filename":"file1"},{"photo_id":"1350192094","filename":"file0"},{"photo_id":"1350192110","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350192122":["hashtag1","hashtag2"]},{"1350192110":["hashtag1","hashtag2"]},{"1350192094":["hashtag1","hashtag2"]},{"1350192112":["hashtag1","hashtag2"]},{"1350192100":["hashtag1","hashtag2"]},{"1350192096":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350192122, 1350192110, 1350192094, 1350192112, 1350192100, 1350192096)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.8849515914917 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 22:06:02.883585
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/22/05/image_06042025_22_05_44_10651.jpg', 2), ('/home/nano/Desktop/images/06042025/22/05/image_06042025_22_05_24_10648.jpg', 2), ('/home/nano/Desktop/images/06042025/22/05/image_06042025_22_05_13_9657.jpg', 2), ('/home/nano/Desktop/images/06042025/22/04/image_06042025_22_05_04_9647.jpg', 2), ('/home/nano/Desktop/images/06042025/22/04/image_06042025_22_04_54_10650.jpg', 2), ('/home/nano/Desktop/images/06042025/19/52/image_06042025_19_53_04_10805.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/22/05/image_06042025_22_05_44_10651.jpg', '/home/nano/Desktop/images/06042025/22/05/image_06042025_22_05_24_10648.jpg', '/home/nano/Desktop/images/06042025/22/05/image_06042025_22_05_13_9657.jpg', '/home/nano/Desktop/images/06042025/22/04/image_06042025_22_05_04_9647.jpg', '/home/nano/Desktop/images/06042025/22/04/image_06042025_22_04_54_10650.jpg', '/home/nano/Desktop/images/06042025/19/52/image_06042025_19_53_04_10805.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/22/05/image_06042025_22_05_44_10651.jpg
/home/nano/Desktop/images/06042025/22/05/image_06042025_22_05_24_10648.jpg
/home/nano/Desktop/images/06042025/22/05/image_06042025_22_05_13_9657.jpg
/home/nano/Desktop/images/06042025/22/04/image_06042025_22_05_04_9647.jpg
/home/nano/Desktop/images/06042025/22/04/image_06042025_22_04_54_10650.jpg
/home/nano/Desktop/images/06042025/19/52/image_06042025_19_53_04_10805.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350192196","1350192181","1350192166","1350192214","1350192202","1350192188"],"photo_ids_order":["1350192166","1350192181","1350192188","1350192196","1350192202","1350192214"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/34a34c3cdb40fa22b26d2e93d09ff984.jpg","text":"TemporaryFile(/tmp/multipartBody7033627512112774453asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970024771,"filename":"image_06042025_22_05_04_9647.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/396c4564d0113cd2611069f658e0c37b.jpg","text":"TemporaryFile(/tmp/multipartBody6853212411169434287asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970024771,"filename":"image_06042025_22_05_24_10648.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/3da59de9b2e725dfa7c5ca91b7cd6389.jpg","text":"TemporaryFile(/tmp/multipartBody729353843254749581asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970024771,"filename":"image_06042025_22_05_44_10651.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4a2d9ac36dc1264b4373a671000dbced.jpg","text":"TemporaryFile(/tmp/multipartBody2702840724657821006asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970024771,"filename":"image_06042025_19_53_04_10805.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/33b8c0f26d64801066ae536e062d3d0b.jpg","text":"TemporaryFile(/tmp/multipartBody5316298159063254501asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970024771,"filename":"image_06042025_22_04_54_10650.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/6958e697152532a99fd21953b2649807.jpg","text":"TemporaryFile(/tmp/multipartBody6960684441494478123asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970024771,"filename":"image_06042025_22_05_13_9657.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350192188","file1":"1350192181","file0":"1350192166","file4":"1350192202","file5":"1350192214","file3":"1350192196"},"map_files_photo_id_array":[{"photo_id":"1350192214","filename":"file5"},{"photo_id":"1350192188","filename":"file2"},{"photo_id":"1350192202","filename":"file4"},{"photo_id":"1350192181","filename":"file1"},{"photo_id":"1350192166","filename":"file0"},{"photo_id":"1350192196","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350192196":["hashtag1","hashtag2"]},{"1350192181":["hashtag1","hashtag2"]},{"1350192166":["hashtag1","hashtag2"]},{"1350192214":["hashtag1","hashtag2"]},{"1350192202":["hashtag1","hashtag2"]},{"1350192188":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350192196, 1350192181, 1350192166, 1350192214, 1350192202, 1350192188)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.856825828552246 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 22:07:03.211846
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/22/06/image_06042025_22_06_44_10650.jpg', 2), ('/home/nano/Desktop/images/06042025/22/06/image_06042025_22_06_33_9640.jpg', 2), ('/home/nano/Desktop/images/06042025/22/06/image_06042025_22_06_24_9639.jpg', 2), ('/home/nano/Desktop/images/06042025/22/06/image_06042025_22_06_14_10665.jpg', 2), ('/home/nano/Desktop/images/06042025/22/05/image_06042025_22_06_03_9664.jpg', 2), ('/home/nano/Desktop/images/06042025/22/05/image_06042025_22_05_54_9639.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/22/06/image_06042025_22_06_44_10650.jpg', '/home/nano/Desktop/images/06042025/22/06/image_06042025_22_06_33_9640.jpg', '/home/nano/Desktop/images/06042025/22/06/image_06042025_22_06_24_9639.jpg', '/home/nano/Desktop/images/06042025/22/06/image_06042025_22_06_14_10665.jpg', '/home/nano/Desktop/images/06042025/22/05/image_06042025_22_06_03_9664.jpg', '/home/nano/Desktop/images/06042025/22/05/image_06042025_22_05_54_9639.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/22/06/image_06042025_22_06_44_10650.jpg
/home/nano/Desktop/images/06042025/22/06/image_06042025_22_06_33_9640.jpg
/home/nano/Desktop/images/06042025/22/06/image_06042025_22_06_24_9639.jpg
/home/nano/Desktop/images/06042025/22/06/image_06042025_22_06_14_10665.jpg
/home/nano/Desktop/images/06042025/22/05/image_06042025_22_06_03_9664.jpg
/home/nano/Desktop/images/06042025/22/05/image_06042025_22_05_54_9639.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350192288","1350192273","1350192281","1350192275","1350192284","1350192278"],"photo_ids_order":["1350192273","1350192275","1350192278","1350192281","1350192284","1350192288"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/40129a607e85faa841de56c32f0e82cb.jpg","text":"TemporaryFile(/tmp/multipartBody1478140926420711451asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970084616,"filename":"image_06042025_22_05_54_9639.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/cecfa87eb8b8d8880a0237a12d9b5756.jpg","text":"TemporaryFile(/tmp/multipartBody4618125312925872062asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970084616,"filename":"image_06042025_22_06_44_10650.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/10961028a6e105f5e9029db36f427b65.jpg","text":"TemporaryFile(/tmp/multipartBody6457319901058040776asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970084616,"filename":"image_06042025_22_06_14_10665.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f5f434560ffa904d42f1e3de398359cf.jpg","text":"TemporaryFile(/tmp/multipartBody882187108859035291asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970084616,"filename":"image_06042025_22_06_33_9640.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f54b89f0a95e92036cc89dbead9a20b8.jpg","text":"TemporaryFile(/tmp/multipartBody316653766221037903asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970084616,"filename":"image_06042025_22_06_03_9664.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ffa1bccf34a0cd0c806d77df3faeda2c.jpg","text":"TemporaryFile(/tmp/multipartBody8596462435806492893asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970084616,"filename":"image_06042025_22_06_24_9639.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350192278","file1":"1350192275","file0":"1350192273","file4":"1350192284","file5":"1350192288","file3":"1350192281"},"map_files_photo_id_array":[{"photo_id":"1350192288","filename":"file5"},{"photo_id":"1350192278","filename":"file2"},{"photo_id":"1350192284","filename":"file4"},{"photo_id":"1350192275","filename":"file1"},{"photo_id":"1350192273","filename":"file0"},{"photo_id":"1350192281","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350192288":["hashtag1","hashtag2"]},{"1350192273":["hashtag1","hashtag2"]},{"1350192281":["hashtag1","hashtag2"]},{"1350192275":["hashtag1","hashtag2"]},{"1350192284":["hashtag1","hashtag2"]},{"1350192278":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350192288, 1350192273, 1350192281, 1350192275, 1350192284, 1350192278)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.33776497840881 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 22:08:03.097877
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/22/07/image_06042025_22_07_44_10650.jpg', 2), ('/home/nano/Desktop/images/06042025/22/07/image_06042025_22_07_33_9637.jpg', 2), ('/home/nano/Desktop/images/06042025/22/07/image_06042025_22_07_24_9640.jpg', 2), ('/home/nano/Desktop/images/06042025/22/07/image_06042025_22_07_14_10669.jpg', 2), ('/home/nano/Desktop/images/06042025/22/06/image_06042025_22_07_03_9662.jpg', 2), ('/home/nano/Desktop/images/06042025/22/06/image_06042025_22_06_54_9641.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/22/07/image_06042025_22_07_44_10650.jpg', '/home/nano/Desktop/images/06042025/22/07/image_06042025_22_07_33_9637.jpg', '/home/nano/Desktop/images/06042025/22/07/image_06042025_22_07_24_9640.jpg', '/home/nano/Desktop/images/06042025/22/07/image_06042025_22_07_14_10669.jpg', '/home/nano/Desktop/images/06042025/22/06/image_06042025_22_07_03_9662.jpg', '/home/nano/Desktop/images/06042025/22/06/image_06042025_22_06_54_9641.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/22/07/image_06042025_22_07_44_10650.jpg
/home/nano/Desktop/images/06042025/22/07/image_06042025_22_07_33_9637.jpg
/home/nano/Desktop/images/06042025/22/07/image_06042025_22_07_24_9640.jpg
/home/nano/Desktop/images/06042025/22/07/image_06042025_22_07_14_10669.jpg
/home/nano/Desktop/images/06042025/22/06/image_06042025_22_07_03_9662.jpg
/home/nano/Desktop/images/06042025/22/06/image_06042025_22_06_54_9641.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350192329","1350192313","1350192321","1350192324","1350192318","1350192312"],"photo_ids_order":["1350192312","1350192313","1350192318","1350192321","1350192324","1350192329"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f0f6086a2414c76cb6655905963f1813.jpg","text":"TemporaryFile(/tmp/multipartBody6149648502988117803asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970144269,"filename":"image_06042025_22_06_54_9641.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f9a05f4043c01e537b6f51472dfabe57.jpg","text":"TemporaryFile(/tmp/multipartBody5342725604218532749asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970144269,"filename":"image_06042025_22_07_33_9637.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/80f78afce05e8e42be6db7563041d916.jpg","text":"TemporaryFile(/tmp/multipartBody3948097446540566512asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970144269,"filename":"image_06042025_22_07_14_10669.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c0ae17a1bed6330c65da0ac1999e08a3.jpg","text":"TemporaryFile(/tmp/multipartBody4520943630569683642asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970144269,"filename":"image_06042025_22_07_03_9662.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e8166e2b4f7da9416006f8ac12b4282a.jpg","text":"TemporaryFile(/tmp/multipartBody7070517617523532126asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970144269,"filename":"image_06042025_22_07_24_9640.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/1e36407de7f7a51b7bd1d50d441ee9f7.jpg","text":"TemporaryFile(/tmp/multipartBody2310117398447376595asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970144269,"filename":"image_06042025_22_07_44_10650.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350192318","file1":"1350192313","file0":"1350192312","file4":"1350192324","file5":"1350192329","file3":"1350192321"},"map_files_photo_id_array":[{"photo_id":"1350192329","filename":"file5"},{"photo_id":"1350192318","filename":"file2"},{"photo_id":"1350192324","filename":"file4"},{"photo_id":"1350192313","filename":"file1"},{"photo_id":"1350192312","filename":"file0"},{"photo_id":"1350192321","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350192329":["hashtag1","hashtag2"]},{"1350192313":["hashtag1","hashtag2"]},{"1350192321":["hashtag1","hashtag2"]},{"1350192324":["hashtag1","hashtag2"]},{"1350192318":["hashtag1","hashtag2"]},{"1350192312":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350192329, 1350192313, 1350192321, 1350192324, 1350192318, 1350192312)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 37.18152666091919 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 22:09:03.682776
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/22/08/image_06042025_22_08_44_10651.jpg', 2), ('/home/nano/Desktop/images/06042025/22/08/image_06042025_22_08_33_9641.jpg', 2), ('/home/nano/Desktop/images/06042025/22/08/image_06042025_22_08_24_9641.jpg', 2), ('/home/nano/Desktop/images/06042025/22/08/image_06042025_22_08_14_10667.jpg', 2), ('/home/nano/Desktop/images/06042025/22/07/image_06042025_22_08_03_9659.jpg', 2), ('/home/nano/Desktop/images/06042025/22/07/image_06042025_22_07_54_9642.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/22/08/image_06042025_22_08_44_10651.jpg', '/home/nano/Desktop/images/06042025/22/08/image_06042025_22_08_33_9641.jpg', '/home/nano/Desktop/images/06042025/22/08/image_06042025_22_08_24_9641.jpg', '/home/nano/Desktop/images/06042025/22/08/image_06042025_22_08_14_10667.jpg', '/home/nano/Desktop/images/06042025/22/07/image_06042025_22_08_03_9659.jpg', '/home/nano/Desktop/images/06042025/22/07/image_06042025_22_07_54_9642.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/22/08/image_06042025_22_08_44_10651.jpg
/home/nano/Desktop/images/06042025/22/08/image_06042025_22_08_33_9641.jpg
/home/nano/Desktop/images/06042025/22/08/image_06042025_22_08_24_9641.jpg
/home/nano/Desktop/images/06042025/22/08/image_06042025_22_08_14_10667.jpg
/home/nano/Desktop/images/06042025/22/07/image_06042025_22_08_03_9659.jpg
/home/nano/Desktop/images/06042025/22/07/image_06042025_22_07_54_9642.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350192373","1350192376","1350192424","1350192381","1350192378","1350192371"],"photo_ids_order":["1350192371","1350192373","1350192376","1350192378","1350192381","1350192424"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/39721536d48764ddb251796dec45dbc5.jpg","text":"TemporaryFile(/tmp/multipartBody5821415038176517352asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970206208,"filename":"image_06042025_22_08_33_9641.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/6509ad6e23df7b83ff72cc1d87f93ed2.jpg","text":"TemporaryFile(/tmp/multipartBody2729703327200208875asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970206208,"filename":"image_06042025_22_08_24_9641.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f41ea6390a9f64b9bf140366a189bab6.jpg","text":"TemporaryFile(/tmp/multipartBody4988159143101731141asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970206208,"filename":"image_06042025_22_07_54_9642.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/455eb74f653dff45d057e6d1575912ec.jpg","text":"TemporaryFile(/tmp/multipartBody2032776018851566152asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970206208,"filename":"image_06042025_22_08_03_9659.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/959c54156bc2495f864a5c75f5dc5e4d.jpg","text":"TemporaryFile(/tmp/multipartBody6228019670375773373asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970206208,"filename":"image_06042025_22_08_14_10667.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b636cbb8d90ad83920873075c4dbe457.jpg","text":"TemporaryFile(/tmp/multipartBody3934063063002819419asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970206208,"filename":"image_06042025_22_08_44_10651.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350192376","file1":"1350192373","file0":"1350192371","file4":"1350192381","file5":"1350192424","file3":"1350192378"},"map_files_photo_id_array":[{"photo_id":"1350192424","filename":"file5"},{"photo_id":"1350192376","filename":"file2"},{"photo_id":"1350192381","filename":"file4"},{"photo_id":"1350192373","filename":"file1"},{"photo_id":"1350192371","filename":"file0"},{"photo_id":"1350192378","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350192373":["hashtag1","hashtag2"]},{"1350192376":["hashtag1","hashtag2"]},{"1350192424":["hashtag1","hashtag2"]},{"1350192381":["hashtag1","hashtag2"]},{"1350192378":["hashtag1","hashtag2"]},{"1350192371":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350192373, 1350192376, 1350192424, 1350192381, 1350192378, 1350192371)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.24417042732239 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 22:10:02.336405
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/22/09/image_06042025_22_09_34_10669.jpg', 2), ('/home/nano/Desktop/images/06042025/22/09/image_06042025_22_09_23_9641.jpg', 2), ('/home/nano/Desktop/images/06042025/22/09/image_06042025_22_09_14_9660.jpg', 2), ('/home/nano/Desktop/images/06042025/22/08/image_06042025_22_09_04_10656.jpg', 2), ('/home/nano/Desktop/images/06042025/22/08/image_06042025_22_08_53_9642.jpg', 2), ('/home/nano/Desktop/images/06042025/19/52/image_06042025_19_52_53_9648.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/22/09/image_06042025_22_09_34_10669.jpg', '/home/nano/Desktop/images/06042025/22/09/image_06042025_22_09_23_9641.jpg', '/home/nano/Desktop/images/06042025/22/09/image_06042025_22_09_14_9660.jpg', '/home/nano/Desktop/images/06042025/22/08/image_06042025_22_09_04_10656.jpg', '/home/nano/Desktop/images/06042025/22/08/image_06042025_22_08_53_9642.jpg', '/home/nano/Desktop/images/06042025/19/52/image_06042025_19_52_53_9648.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/22/09/image_06042025_22_09_34_10669.jpg
/home/nano/Desktop/images/06042025/22/09/image_06042025_22_09_23_9641.jpg
/home/nano/Desktop/images/06042025/22/09/image_06042025_22_09_14_9660.jpg
/home/nano/Desktop/images/06042025/22/08/image_06042025_22_09_04_10656.jpg
/home/nano/Desktop/images/06042025/22/08/image_06042025_22_08_53_9642.jpg
/home/nano/Desktop/images/06042025/19/52/image_06042025_19_52_53_9648.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 1.6835577487945557 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 22:10:31.848194
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/22/10/image_06042025_22_10_44_9638.jpg', 2), ('/home/nano/Desktop/images/06042025/22/10/image_06042025_22_10_34_10649.jpg', 2), ('/home/nano/Desktop/images/06042025/22/10/image_06042025_22_10_23_9641.jpg', 2), ('/home/nano/Desktop/images/06042025/22/10/image_06042025_22_10_14_9657.jpg', 2), ('/home/nano/Desktop/images/06042025/22/09/image_06042025_22_09_44_9641.jpg', 2), ('/home/nano/Desktop/images/06042025/22/09/image_06042025_22_09_34_10669.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/22/10/image_06042025_22_10_44_9638.jpg', '/home/nano/Desktop/images/06042025/22/10/image_06042025_22_10_34_10649.jpg', '/home/nano/Desktop/images/06042025/22/10/image_06042025_22_10_23_9641.jpg', '/home/nano/Desktop/images/06042025/22/10/image_06042025_22_10_14_9657.jpg', '/home/nano/Desktop/images/06042025/22/09/image_06042025_22_09_44_9641.jpg', '/home/nano/Desktop/images/06042025/22/09/image_06042025_22_09_34_10669.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/22/10/image_06042025_22_10_44_9638.jpg
/home/nano/Desktop/images/06042025/22/10/image_06042025_22_10_34_10649.jpg
/home/nano/Desktop/images/06042025/22/10/image_06042025_22_10_23_9641.jpg
/home/nano/Desktop/images/06042025/22/10/image_06042025_22_10_14_9657.jpg
/home/nano/Desktop/images/06042025/22/09/image_06042025_22_09_44_9641.jpg
/home/nano/Desktop/images/06042025/22/09/image_06042025_22_09_34_10669.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350192592","1350192649","1350192654","1350192597","1350192573","1350192656"],"photo_ids_order":["1350192573","1350192592","1350192597","1350192649","1350192654","1350192656"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a58606e4c4693a22d1c34fa2af0e4e66.jpg","text":"TemporaryFile(/tmp/multipartBody8631847478412124287asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970293488,"filename":"image_06042025_22_10_34_10649.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/6731ab47871abb92470c842900c64d2b.jpg","text":"TemporaryFile(/tmp/multipartBody1656085247420881941asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970293488,"filename":"image_06042025_22_10_14_9657.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/04cd8f402eb742dc564847d4036d0b0d.jpg","text":"TemporaryFile(/tmp/multipartBody7131355216430614262asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970293488,"filename":"image_06042025_22_09_44_9641.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a2a1bfbe95e13316a0ac1e14e421e20a.jpg","text":"TemporaryFile(/tmp/multipartBody1077839235115761248asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970293488,"filename":"image_06042025_22_10_23_9641.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/97cf9c487ee584ea5af68ef81fe219b5.jpg","text":"TemporaryFile(/tmp/multipartBody4404831141982650587asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970293488,"filename":"image_06042025_22_10_44_9638.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ec1ee986280653aef9fb6782bc35b10d.jpg","text":"TemporaryFile(/tmp/multipartBody1762102872217205139asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970293488,"filename":"image_06042025_22_09_34_10669.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350192597","file1":"1350192592","file0":"1350192573","file4":"1350192654","file5":"1350192656","file3":"1350192649"},"map_files_photo_id_array":[{"photo_id":"1350192656","filename":"file5"},{"photo_id":"1350192597","filename":"file2"},{"photo_id":"1350192654","filename":"file4"},{"photo_id":"1350192592","filename":"file1"},{"photo_id":"1350192573","filename":"file0"},{"photo_id":"1350192649","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350192592":["hashtag1","hashtag2"]},{"1350192649":["hashtag1","hashtag2"]},{"1350192654":["hashtag1","hashtag2"]},{"1350192597":["hashtag1","hashtag2"]},{"1350192573":["hashtag1","hashtag2"]},{"1350192656":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350192592, 1350192649, 1350192654, 1350192597, 1350192573, 1350192656)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.177144050598145 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 22:11:31.980015
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/22/11/image_06042025_22_11_44_9640.jpg', 2), ('/home/nano/Desktop/images/06042025/22/11/image_06042025_22_11_34_10650.jpg', 2), ('/home/nano/Desktop/images/06042025/22/11/image_06042025_22_11_23_9638.jpg', 2), ('/home/nano/Desktop/images/06042025/22/11/image_06042025_22_11_14_9659.jpg', 2), ('/home/nano/Desktop/images/06042025/22/10/image_06042025_22_11_04_10652.jpg', 2), ('/home/nano/Desktop/images/06042025/22/10/image_06042025_22_10_53_9641.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/22/11/image_06042025_22_11_44_9640.jpg', '/home/nano/Desktop/images/06042025/22/11/image_06042025_22_11_34_10650.jpg', '/home/nano/Desktop/images/06042025/22/11/image_06042025_22_11_23_9638.jpg', '/home/nano/Desktop/images/06042025/22/11/image_06042025_22_11_14_9659.jpg', '/home/nano/Desktop/images/06042025/22/10/image_06042025_22_11_04_10652.jpg', '/home/nano/Desktop/images/06042025/22/10/image_06042025_22_10_53_9641.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/22/11/image_06042025_22_11_44_9640.jpg
/home/nano/Desktop/images/06042025/22/11/image_06042025_22_11_34_10650.jpg
/home/nano/Desktop/images/06042025/22/11/image_06042025_22_11_23_9638.jpg
/home/nano/Desktop/images/06042025/22/11/image_06042025_22_11_14_9659.jpg
/home/nano/Desktop/images/06042025/22/10/image_06042025_22_11_04_10652.jpg
/home/nano/Desktop/images/06042025/22/10/image_06042025_22_10_53_9641.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350192722","1350192731","1350192704","1350192717","1350192711","1350192708"],"photo_ids_order":["1350192704","1350192708","1350192711","1350192717","1350192722","1350192731"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4c5ef619f22c869b7fa6a66430486538.jpg","text":"TemporaryFile(/tmp/multipartBody1367450613051044176asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970354446,"filename":"image_06042025_22_11_04_10652.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/384d7984f04200d848a7825d567cbe9e.jpg","text":"TemporaryFile(/tmp/multipartBody4579794709673057719asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970354446,"filename":"image_06042025_22_10_53_9641.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/497b460df396f23573fb538a5face3c5.jpg","text":"TemporaryFile(/tmp/multipartBody434858514464615722asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970354446,"filename":"image_06042025_22_11_44_9640.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/00b58347362928cf4d3da99216f4a958.jpg","text":"TemporaryFile(/tmp/multipartBody2284319924666879928asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970354446,"filename":"image_06042025_22_11_14_9659.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4b36e44489a3820d35e9c5993e1e4ae2.jpg","text":"TemporaryFile(/tmp/multipartBody3743049552280624813asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970354446,"filename":"image_06042025_22_11_23_9638.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/bdbbecad7d1d5ea36634985226081f00.jpg","text":"TemporaryFile(/tmp/multipartBody5217111593736874826asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970354446,"filename":"image_06042025_22_11_34_10650.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350192711","file1":"1350192708","file0":"1350192704","file4":"1350192722","file5":"1350192731","file3":"1350192717"},"map_files_photo_id_array":[{"photo_id":"1350192731","filename":"file5"},{"photo_id":"1350192711","filename":"file2"},{"photo_id":"1350192722","filename":"file4"},{"photo_id":"1350192708","filename":"file1"},{"photo_id":"1350192704","filename":"file0"},{"photo_id":"1350192717","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350192722":["hashtag1","hashtag2"]},{"1350192731":["hashtag1","hashtag2"]},{"1350192704":["hashtag1","hashtag2"]},{"1350192717":["hashtag1","hashtag2"]},{"1350192711":["hashtag1","hashtag2"]},{"1350192708":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350192722, 1350192731, 1350192704, 1350192717, 1350192711, 1350192708)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.83409762382507 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 22:12:32.060290
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/22/12/image_06042025_22_12_43_9639.jpg', 2), ('/home/nano/Desktop/images/06042025/22/12/image_06042025_22_12_34_10649.jpg', 2), ('/home/nano/Desktop/images/06042025/22/12/image_06042025_22_12_23_9652.jpg', 2), ('/home/nano/Desktop/images/06042025/22/12/image_06042025_22_12_14_9667.jpg', 2), ('/home/nano/Desktop/images/06042025/22/11/image_06042025_22_12_04_10665.jpg', 2), ('/home/nano/Desktop/images/06042025/22/11/image_06042025_22_11_53_9638.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/22/12/image_06042025_22_12_43_9639.jpg', '/home/nano/Desktop/images/06042025/22/12/image_06042025_22_12_34_10649.jpg', '/home/nano/Desktop/images/06042025/22/12/image_06042025_22_12_23_9652.jpg', '/home/nano/Desktop/images/06042025/22/12/image_06042025_22_12_14_9667.jpg', '/home/nano/Desktop/images/06042025/22/11/image_06042025_22_12_04_10665.jpg', '/home/nano/Desktop/images/06042025/22/11/image_06042025_22_11_53_9638.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/22/12/image_06042025_22_12_43_9639.jpg
/home/nano/Desktop/images/06042025/22/12/image_06042025_22_12_34_10649.jpg
/home/nano/Desktop/images/06042025/22/12/image_06042025_22_12_23_9652.jpg
/home/nano/Desktop/images/06042025/22/12/image_06042025_22_12_14_9667.jpg
/home/nano/Desktop/images/06042025/22/11/image_06042025_22_12_04_10665.jpg
/home/nano/Desktop/images/06042025/22/11/image_06042025_22_11_53_9638.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350193126","1350193179","1350193131","1350193166","1350193183","1350193121"],"photo_ids_order":["1350193121","1350193126","1350193131","1350193166","1350193179","1350193183"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/1b824085fe3db3235e19ea790824498c.jpg","text":"TemporaryFile(/tmp/multipartBody6703880497132075969asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970413436,"filename":"image_06042025_22_12_34_10649.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4effe51e2073128c77f6135a481fa047.jpg","text":"TemporaryFile(/tmp/multipartBody8348933328575046680asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970413436,"filename":"image_06042025_22_12_04_10665.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f07b2dea06eb3fe54f7c0b35e4a2428b.jpg","text":"TemporaryFile(/tmp/multipartBody3179184632300102872asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970413436,"filename":"image_06042025_22_12_23_9652.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c3d80c24fd9de74ac848310e41e272c7.jpg","text":"TemporaryFile(/tmp/multipartBody2761634872587061959asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970413436,"filename":"image_06042025_22_12_14_9667.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/8a3aa8ea3cb03290af9d779780021466.jpg","text":"TemporaryFile(/tmp/multipartBody7958997215368539344asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970413436,"filename":"image_06042025_22_11_53_9638.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e3151cbafad4393d3e40bf42375fcddf.jpg","text":"TemporaryFile(/tmp/multipartBody366508303820981164asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970413436,"filename":"image_06042025_22_12_43_9639.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350193131","file1":"1350193126","file0":"1350193121","file4":"1350193179","file5":"1350193183","file3":"1350193166"},"map_files_photo_id_array":[{"photo_id":"1350193183","filename":"file5"},{"photo_id":"1350193131","filename":"file2"},{"photo_id":"1350193179","filename":"file4"},{"photo_id":"1350193126","filename":"file1"},{"photo_id":"1350193121","filename":"file0"},{"photo_id":"1350193166","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350193126":["hashtag1","hashtag2"]},{"1350193179":["hashtag1","hashtag2"]},{"1350193131":["hashtag1","hashtag2"]},{"1350193166":["hashtag1","hashtag2"]},{"1350193183":["hashtag1","hashtag2"]},{"1350193121":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350193126, 1350193179, 1350193131, 1350193166, 1350193183, 1350193121)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.60631275177002 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 22:13:32.192373
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/22/13/image_06042025_22_13_43_9639.jpg', 2), ('/home/nano/Desktop/images/06042025/22/13/image_06042025_22_13_34_9641.jpg', 2), ('/home/nano/Desktop/images/06042025/22/13/image_06042025_22_13_24_10649.jpg', 2), ('/home/nano/Desktop/images/06042025/22/13/image_06042025_22_13_13_9659.jpg', 2), ('/home/nano/Desktop/images/06042025/22/12/image_06042025_22_13_04_9650.jpg', 2), ('/home/nano/Desktop/images/06042025/22/12/image_06042025_22_12_54_10650.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/22/13/image_06042025_22_13_43_9639.jpg', '/home/nano/Desktop/images/06042025/22/13/image_06042025_22_13_34_9641.jpg', '/home/nano/Desktop/images/06042025/22/13/image_06042025_22_13_24_10649.jpg', '/home/nano/Desktop/images/06042025/22/13/image_06042025_22_13_13_9659.jpg', '/home/nano/Desktop/images/06042025/22/12/image_06042025_22_13_04_9650.jpg', '/home/nano/Desktop/images/06042025/22/12/image_06042025_22_12_54_10650.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/22/13/image_06042025_22_13_43_9639.jpg
/home/nano/Desktop/images/06042025/22/13/image_06042025_22_13_34_9641.jpg
/home/nano/Desktop/images/06042025/22/13/image_06042025_22_13_24_10649.jpg
/home/nano/Desktop/images/06042025/22/13/image_06042025_22_13_13_9659.jpg
/home/nano/Desktop/images/06042025/22/12/image_06042025_22_13_04_9650.jpg
/home/nano/Desktop/images/06042025/22/12/image_06042025_22_12_54_10650.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350193240","1350193219","1350193230","1350193233","1350193236","1350193224"],"photo_ids_order":["1350193219","1350193224","1350193230","1350193233","1350193236","1350193240"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ae49c470515dccbccb828ab260850439.jpg","text":"TemporaryFile(/tmp/multipartBody1639020921082483088asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970473775,"filename":"image_06042025_22_12_54_10650.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/025a011ed6d034609b23a428bdc72b93.jpg","text":"TemporaryFile(/tmp/multipartBody5150586798773961227asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970473775,"filename":"image_06042025_22_13_43_9639.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/2d5d72525302e0d4c6524caec71c279e.jpg","text":"TemporaryFile(/tmp/multipartBody8087941239012648403asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970473775,"filename":"image_06042025_22_13_24_10649.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/1c30e8e1757ccee78ca275cca7914d19.jpg","text":"TemporaryFile(/tmp/multipartBody7124800497848107650asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970473775,"filename":"image_06042025_22_13_13_9659.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/399af23e78e9e97a7bb31078a3679639.jpg","text":"TemporaryFile(/tmp/multipartBody5487327928641242210asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970473775,"filename":"image_06042025_22_13_04_9650.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/aad19c45b4435534b5598c892a8d0fb5.jpg","text":"TemporaryFile(/tmp/multipartBody8780149319841477511asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970473775,"filename":"image_06042025_22_13_34_9641.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350193230","file1":"1350193224","file0":"1350193219","file4":"1350193236","file5":"1350193240","file3":"1350193233"},"map_files_photo_id_array":[{"photo_id":"1350193240","filename":"file5"},{"photo_id":"1350193230","filename":"file2"},{"photo_id":"1350193236","filename":"file4"},{"photo_id":"1350193224","filename":"file1"},{"photo_id":"1350193219","filename":"file0"},{"photo_id":"1350193233","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350193240":["hashtag1","hashtag2"]},{"1350193219":["hashtag1","hashtag2"]},{"1350193230":["hashtag1","hashtag2"]},{"1350193233":["hashtag1","hashtag2"]},{"1350193236":["hashtag1","hashtag2"]},{"1350193224":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350193240, 1350193219, 1350193230, 1350193233, 1350193236, 1350193224)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.95243310928345 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 22:14:32.260899
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/22/14/image_06042025_22_14_43_9639.jpg', 2), ('/home/nano/Desktop/images/06042025/22/14/image_06042025_22_14_34_9640.jpg', 2), ('/home/nano/Desktop/images/06042025/22/14/image_06042025_22_14_24_10653.jpg', 2), ('/home/nano/Desktop/images/06042025/22/13/image_06042025_22_14_04_9652.jpg', 2), ('/home/nano/Desktop/images/06042025/22/13/image_06042025_22_13_54_10650.jpg', 2), ('/home/nano/Desktop/images/06042025/22/09/image_06042025_22_09_23_9641.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/22/14/image_06042025_22_14_43_9639.jpg', '/home/nano/Desktop/images/06042025/22/14/image_06042025_22_14_34_9640.jpg', '/home/nano/Desktop/images/06042025/22/14/image_06042025_22_14_24_10653.jpg', '/home/nano/Desktop/images/06042025/22/13/image_06042025_22_14_04_9652.jpg', '/home/nano/Desktop/images/06042025/22/13/image_06042025_22_13_54_10650.jpg', '/home/nano/Desktop/images/06042025/22/09/image_06042025_22_09_23_9641.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/22/14/image_06042025_22_14_43_9639.jpg
/home/nano/Desktop/images/06042025/22/14/image_06042025_22_14_34_9640.jpg
/home/nano/Desktop/images/06042025/22/14/image_06042025_22_14_24_10653.jpg
/home/nano/Desktop/images/06042025/22/13/image_06042025_22_14_04_9652.jpg
/home/nano/Desktop/images/06042025/22/13/image_06042025_22_13_54_10650.jpg
/home/nano/Desktop/images/06042025/22/09/image_06042025_22_09_23_9641.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350193264","1350193255","1350193251","1350193262","1350193259","1350193247"],"photo_ids_order":["1350193247","1350193251","1350193255","1350193259","1350193262","1350193264"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/9856cff33ff09324ededda07d25fcffc.jpg","text":"TemporaryFile(/tmp/multipartBody370689001493853156asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970533904,"filename":"image_06042025_22_09_23_9641.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b337f5ef1f8aeac455f26e504704cf8b.jpg","text":"TemporaryFile(/tmp/multipartBody7152292065449031879asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970533904,"filename":"image_06042025_22_14_24_10653.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/8f91f39ad50ee9a01a1c3207aae91360.jpg","text":"TemporaryFile(/tmp/multipartBody7338745022255234519asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970533904,"filename":"image_06042025_22_14_34_9640.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/22c9ec9bca7400b87de650e1c52af1b7.jpg","text":"TemporaryFile(/tmp/multipartBody2878304135215577577asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970533904,"filename":"image_06042025_22_13_54_10650.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/787669a86593091faebefb9f1c82718d.jpg","text":"TemporaryFile(/tmp/multipartBody454670655707019176asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970533904,"filename":"image_06042025_22_14_04_9652.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c17578c5d90d5496d02b7b179d56c54a.jpg","text":"TemporaryFile(/tmp/multipartBody6392098496608501312asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970533904,"filename":"image_06042025_22_14_43_9639.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350193255","file1":"1350193251","file0":"1350193247","file4":"1350193262","file5":"1350193264","file3":"1350193259"},"map_files_photo_id_array":[{"photo_id":"1350193264","filename":"file5"},{"photo_id":"1350193255","filename":"file2"},{"photo_id":"1350193262","filename":"file4"},{"photo_id":"1350193251","filename":"file1"},{"photo_id":"1350193247","filename":"file0"},{"photo_id":"1350193259","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350193264":["hashtag1","hashtag2"]},{"1350193255":["hashtag1","hashtag2"]},{"1350193251":["hashtag1","hashtag2"]},{"1350193262":["hashtag1","hashtag2"]},{"1350193259":["hashtag1","hashtag2"]},{"1350193247":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350193264, 1350193255, 1350193251, 1350193262, 1350193259, 1350193247)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.36864376068115 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 22:15:32.360574
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/22/15/image_06042025_22_15_43_9642.jpg', 2), ('/home/nano/Desktop/images/06042025/22/15/image_06042025_22_15_34_9642.jpg', 2), ('/home/nano/Desktop/images/06042025/22/15/image_06042025_22_15_24_10650.jpg', 2), ('/home/nano/Desktop/images/06042025/22/15/image_06042025_22_15_13_9661.jpg', 2), ('/home/nano/Desktop/images/06042025/22/14/image_06042025_22_15_04_9663.jpg', 2), ('/home/nano/Desktop/images/06042025/22/14/image_06042025_22_14_54_10648.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/22/15/image_06042025_22_15_43_9642.jpg', '/home/nano/Desktop/images/06042025/22/15/image_06042025_22_15_34_9642.jpg', '/home/nano/Desktop/images/06042025/22/15/image_06042025_22_15_24_10650.jpg', '/home/nano/Desktop/images/06042025/22/15/image_06042025_22_15_13_9661.jpg', '/home/nano/Desktop/images/06042025/22/14/image_06042025_22_15_04_9663.jpg', '/home/nano/Desktop/images/06042025/22/14/image_06042025_22_14_54_10648.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/22/15/image_06042025_22_15_43_9642.jpg
/home/nano/Desktop/images/06042025/22/15/image_06042025_22_15_34_9642.jpg
/home/nano/Desktop/images/06042025/22/15/image_06042025_22_15_24_10650.jpg
/home/nano/Desktop/images/06042025/22/15/image_06042025_22_15_13_9661.jpg
/home/nano/Desktop/images/06042025/22/14/image_06042025_22_15_04_9663.jpg
/home/nano/Desktop/images/06042025/22/14/image_06042025_22_14_54_10648.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350193296","1350193323","1350193292","1350193280","1350193322","1350193325"],"photo_ids_order":["1350193280","1350193292","1350193296","1350193322","1350193323","1350193325"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/bc3e0c99b064092e117caf9b8c6c81fe.jpg","text":"TemporaryFile(/tmp/multipartBody1146846212070909912asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970594288,"filename":"image_06042025_22_15_24_10650.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/d2157c55c098d8a8a64f4abce9ca7ae1.jpg","text":"TemporaryFile(/tmp/multipartBody697968056789023975asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970594288,"filename":"image_06042025_22_15_04_9663.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/005a388fda98e6b753783b13d58751db.jpg","text":"TemporaryFile(/tmp/multipartBody1183729855684941029asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970594288,"filename":"image_06042025_22_15_34_9642.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e48d93aa7a0155e13215cb9e610a3e88.jpg","text":"TemporaryFile(/tmp/multipartBody5632656398720989582asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970594288,"filename":"image_06042025_22_15_43_9642.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/8d58815645877b7988176ad1e5d93f27.jpg","text":"TemporaryFile(/tmp/multipartBody5393380039280741456asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970594288,"filename":"image_06042025_22_15_13_9661.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a1323ef41202f525cb60e13d29598f6c.jpg","text":"TemporaryFile(/tmp/multipartBody5659136164691189710asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970594288,"filename":"image_06042025_22_14_54_10648.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350193296","file1":"1350193292","file0":"1350193280","file4":"1350193323","file5":"1350193325","file3":"1350193322"},"map_files_photo_id_array":[{"photo_id":"1350193325","filename":"file5"},{"photo_id":"1350193296","filename":"file2"},{"photo_id":"1350193323","filename":"file4"},{"photo_id":"1350193292","filename":"file1"},{"photo_id":"1350193280","filename":"file0"},{"photo_id":"1350193322","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350193296":["hashtag1","hashtag2"]},{"1350193323":["hashtag1","hashtag2"]},{"1350193292":["hashtag1","hashtag2"]},{"1350193280":["hashtag1","hashtag2"]},{"1350193322":["hashtag1","hashtag2"]},{"1350193325":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350193296, 1350193323, 1350193292, 1350193280, 1350193322, 1350193325)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 44.63044476509094 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 22:16:32.468777
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/22/16/image_06042025_22_16_44_10658.jpg', 2), ('/home/nano/Desktop/images/06042025/22/16/image_06042025_22_16_33_9649.jpg', 2), ('/home/nano/Desktop/images/06042025/22/16/image_06042025_22_16_24_10664.jpg', 2), ('/home/nano/Desktop/images/06042025/22/16/image_06042025_22_16_13_9664.jpg', 2), ('/home/nano/Desktop/images/06042025/22/15/image_06042025_22_16_03_9675.jpg', 2), ('/home/nano/Desktop/images/06042025/22/15/image_06042025_22_15_54_10652.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/22/16/image_06042025_22_16_44_10658.jpg', '/home/nano/Desktop/images/06042025/22/16/image_06042025_22_16_33_9649.jpg', '/home/nano/Desktop/images/06042025/22/16/image_06042025_22_16_24_10664.jpg', '/home/nano/Desktop/images/06042025/22/16/image_06042025_22_16_13_9664.jpg', '/home/nano/Desktop/images/06042025/22/15/image_06042025_22_16_03_9675.jpg', '/home/nano/Desktop/images/06042025/22/15/image_06042025_22_15_54_10652.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/22/16/image_06042025_22_16_44_10658.jpg
/home/nano/Desktop/images/06042025/22/16/image_06042025_22_16_33_9649.jpg
/home/nano/Desktop/images/06042025/22/16/image_06042025_22_16_24_10664.jpg
/home/nano/Desktop/images/06042025/22/16/image_06042025_22_16_13_9664.jpg
/home/nano/Desktop/images/06042025/22/15/image_06042025_22_16_03_9675.jpg
/home/nano/Desktop/images/06042025/22/15/image_06042025_22_15_54_10652.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350193363","1350193366","1350193375","1350193361","1350193442","1350193436"],"photo_ids_order":["1350193361","1350193363","1350193366","1350193375","1350193436","1350193442"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/8003931a61336de95a8f84fdfd107038.jpg","text":"TemporaryFile(/tmp/multipartBody1656449000412795760asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970654098,"filename":"image_06042025_22_16_33_9649.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/91ad2f209e1233572690db60f8b9cbd8.jpg","text":"TemporaryFile(/tmp/multipartBody3695706014621013351asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970654098,"filename":"image_06042025_22_16_24_10664.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/aa4c4cbc2f9ffde4cca0cf42e9602010.jpg","text":"TemporaryFile(/tmp/multipartBody5567984249501163813asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970654098,"filename":"image_06042025_22_16_13_9664.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/1722e8c40976dbb7c1edc0e2e5b52849.jpg","text":"TemporaryFile(/tmp/multipartBody1541603436873346561asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970654098,"filename":"image_06042025_22_16_44_10658.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/7e917a9a257bd9f2d7880a5573c03fe1.jpg","text":"TemporaryFile(/tmp/multipartBody7892016649557184361asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970654098,"filename":"image_06042025_22_15_54_10652.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c9338df918f34f7292c9bdd3439a5c8d.jpg","text":"TemporaryFile(/tmp/multipartBody4810288812770699735asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970654098,"filename":"image_06042025_22_16_03_9675.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350193366","file1":"1350193363","file0":"1350193361","file4":"1350193436","file5":"1350193442","file3":"1350193375"},"map_files_photo_id_array":[{"photo_id":"1350193442","filename":"file5"},{"photo_id":"1350193366","filename":"file2"},{"photo_id":"1350193436","filename":"file4"},{"photo_id":"1350193363","filename":"file1"},{"photo_id":"1350193361","filename":"file0"},{"photo_id":"1350193375","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350193363":["hashtag1","hashtag2"]},{"1350193366":["hashtag1","hashtag2"]},{"1350193375":["hashtag1","hashtag2"]},{"1350193361":["hashtag1","hashtag2"]},{"1350193442":["hashtag1","hashtag2"]},{"1350193436":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350193363, 1350193366, 1350193375, 1350193361, 1350193442, 1350193436)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 38.82839560508728 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 22:17:32.565622
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/22/17/image_06042025_22_17_44_10672.jpg', 2), ('/home/nano/Desktop/images/06042025/22/17/image_06042025_22_17_24_9647.jpg', 2), ('/home/nano/Desktop/images/06042025/22/17/image_06042025_22_17_14_10677.jpg', 2), ('/home/nano/Desktop/images/06042025/22/16/image_06042025_22_16_54_9648.jpg', 2), ('/home/nano/Desktop/images/06042025/22/09/image_06042025_22_09_14_9660.jpg', 2), ('/home/nano/Desktop/images/06042025/22/08/image_06042025_22_09_04_10656.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/22/17/image_06042025_22_17_44_10672.jpg', '/home/nano/Desktop/images/06042025/22/17/image_06042025_22_17_24_9647.jpg', '/home/nano/Desktop/images/06042025/22/17/image_06042025_22_17_14_10677.jpg', '/home/nano/Desktop/images/06042025/22/16/image_06042025_22_16_54_9648.jpg', '/home/nano/Desktop/images/06042025/22/09/image_06042025_22_09_14_9660.jpg', '/home/nano/Desktop/images/06042025/22/08/image_06042025_22_09_04_10656.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/22/17/image_06042025_22_17_44_10672.jpg
/home/nano/Desktop/images/06042025/22/17/image_06042025_22_17_24_9647.jpg
/home/nano/Desktop/images/06042025/22/17/image_06042025_22_17_14_10677.jpg
/home/nano/Desktop/images/06042025/22/16/image_06042025_22_16_54_9648.jpg
/home/nano/Desktop/images/06042025/22/09/image_06042025_22_09_14_9660.jpg
/home/nano/Desktop/images/06042025/22/08/image_06042025_22_09_04_10656.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350193570","1350193558","1350193549","1350193563","1350193553","1350193538"],"photo_ids_order":["1350193538","1350193549","1350193553","1350193558","1350193563","1350193570"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/1d523a7578117bbee214c51893b14598.jpg","text":"TemporaryFile(/tmp/multipartBody7418953144456322156asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970714360,"filename":"image_06042025_22_09_04_10656.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/671cdeaafb2364321daca666ecad8a5f.jpg","text":"TemporaryFile(/tmp/multipartBody2606351739777956358asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970714360,"filename":"image_06042025_22_16_54_9648.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/3f72975eafbd2e3c1f1fc4c01908aa9d.jpg","text":"TemporaryFile(/tmp/multipartBody7273508083793121249asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970714360,"filename":"image_06042025_22_17_24_9647.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/bc3847302c14290089cefd3396c0ded9.jpg","text":"TemporaryFile(/tmp/multipartBody4935508471948976336asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970714360,"filename":"image_06042025_22_09_14_9660.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c19627a3796062fb07d6aef06ed18175.jpg","text":"TemporaryFile(/tmp/multipartBody64000564312325656asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970714360,"filename":"image_06042025_22_17_14_10677.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/94bce6e3bd20d9d173567f96baf55507.jpg","text":"TemporaryFile(/tmp/multipartBody5944746481342745832asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970714360,"filename":"image_06042025_22_17_44_10672.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350193553","file1":"1350193549","file0":"1350193538","file4":"1350193563","file5":"1350193570","file3":"1350193558"},"map_files_photo_id_array":[{"photo_id":"1350193570","filename":"file5"},{"photo_id":"1350193553","filename":"file2"},{"photo_id":"1350193563","filename":"file4"},{"photo_id":"1350193549","filename":"file1"},{"photo_id":"1350193538","filename":"file0"},{"photo_id":"1350193558","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350193570":["hashtag1","hashtag2"]},{"1350193558":["hashtag1","hashtag2"]},{"1350193549":["hashtag1","hashtag2"]},{"1350193563":["hashtag1","hashtag2"]},{"1350193553":["hashtag1","hashtag2"]},{"1350193538":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350193570, 1350193558, 1350193549, 1350193563, 1350193553, 1350193538)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.31598258018494 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 22:18:32.628094
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/22/18/image_06042025_22_18_44_10687.jpg', 2), ('/home/nano/Desktop/images/06042025/22/18/image_06042025_22_18_24_9644.jpg', 2), ('/home/nano/Desktop/images/06042025/22/18/image_06042025_22_18_14_10694.jpg', 2), ('/home/nano/Desktop/images/06042025/22/17/image_06042025_22_18_03_9649.jpg', 2), ('/home/nano/Desktop/images/06042025/22/17/image_06042025_22_17_54_9648.jpg', 2), ('/home/nano/Desktop/images/06042025/22/08/image_06042025_22_08_53_9642.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/22/18/image_06042025_22_18_44_10687.jpg', '/home/nano/Desktop/images/06042025/22/18/image_06042025_22_18_24_9644.jpg', '/home/nano/Desktop/images/06042025/22/18/image_06042025_22_18_14_10694.jpg', '/home/nano/Desktop/images/06042025/22/17/image_06042025_22_18_03_9649.jpg', '/home/nano/Desktop/images/06042025/22/17/image_06042025_22_17_54_9648.jpg', '/home/nano/Desktop/images/06042025/22/08/image_06042025_22_08_53_9642.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/22/18/image_06042025_22_18_44_10687.jpg
/home/nano/Desktop/images/06042025/22/18/image_06042025_22_18_24_9644.jpg
/home/nano/Desktop/images/06042025/22/18/image_06042025_22_18_14_10694.jpg
/home/nano/Desktop/images/06042025/22/17/image_06042025_22_18_03_9649.jpg
/home/nano/Desktop/images/06042025/22/17/image_06042025_22_17_54_9648.jpg
/home/nano/Desktop/images/06042025/22/08/image_06042025_22_08_53_9642.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350193651","1350193645","1350193639","1350193629","1350193631","1350193634"],"photo_ids_order":["1350193629","1350193631","1350193634","1350193639","1350193645","1350193651"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/dd6bdc5529fde06c612b05c0ecfba95c.jpg","text":"TemporaryFile(/tmp/multipartBody7969413785159000542asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970775038,"filename":"image_06042025_22_08_53_9642.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b6f2b276b50e262edb30efae08212af2.jpg","text":"TemporaryFile(/tmp/multipartBody451114601232111431asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970775038,"filename":"image_06042025_22_17_54_9648.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/908ab6a03948d6d0383454dd01b61b62.jpg","text":"TemporaryFile(/tmp/multipartBody429632195107927527asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970775038,"filename":"image_06042025_22_18_03_9649.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/9ab0a1b5e4445a9cc424a9fafac4fc6f.jpg","text":"TemporaryFile(/tmp/multipartBody6468827484705833328asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970775038,"filename":"image_06042025_22_18_44_10687.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/19964a53611fa700b8df28283de80b28.jpg","text":"TemporaryFile(/tmp/multipartBody5500925937703843460asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970775038,"filename":"image_06042025_22_18_24_9644.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/752cb16ab2ae12f8c20604ce07343732.jpg","text":"TemporaryFile(/tmp/multipartBody4334662886473119783asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970775038,"filename":"image_06042025_22_18_14_10694.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350193634","file1":"1350193631","file0":"1350193629","file4":"1350193645","file5":"1350193651","file3":"1350193639"},"map_files_photo_id_array":[{"photo_id":"1350193651","filename":"file5"},{"photo_id":"1350193634","filename":"file2"},{"photo_id":"1350193645","filename":"file4"},{"photo_id":"1350193631","filename":"file1"},{"photo_id":"1350193629","filename":"file0"},{"photo_id":"1350193639","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350193651":["hashtag1","hashtag2"]},{"1350193645":["hashtag1","hashtag2"]},{"1350193639":["hashtag1","hashtag2"]},{"1350193629":["hashtag1","hashtag2"]},{"1350193631":["hashtag1","hashtag2"]},{"1350193634":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350193651, 1350193645, 1350193639, 1350193629, 1350193631, 1350193634)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.91109800338745 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 22:19:32.740607
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/22/19/image_06042025_22_19_43_9666.jpg', 2), ('/home/nano/Desktop/images/06042025/22/19/image_06042025_22_19_34_9762.jpg', 2), ('/home/nano/Desktop/images/06042025/22/19/image_06042025_22_19_24_9779.jpg', 2), ('/home/nano/Desktop/images/06042025/22/19/image_06042025_22_19_14_10658.jpg', 2), ('/home/nano/Desktop/images/06042025/22/18/image_06042025_22_19_03_9639.jpg', 2), ('/home/nano/Desktop/images/06042025/22/18/image_06042025_22_18_54_9632.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/22/19/image_06042025_22_19_43_9666.jpg', '/home/nano/Desktop/images/06042025/22/19/image_06042025_22_19_34_9762.jpg', '/home/nano/Desktop/images/06042025/22/19/image_06042025_22_19_24_9779.jpg', '/home/nano/Desktop/images/06042025/22/19/image_06042025_22_19_14_10658.jpg', '/home/nano/Desktop/images/06042025/22/18/image_06042025_22_19_03_9639.jpg', '/home/nano/Desktop/images/06042025/22/18/image_06042025_22_18_54_9632.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/22/19/image_06042025_22_19_43_9666.jpg
/home/nano/Desktop/images/06042025/22/19/image_06042025_22_19_34_9762.jpg
/home/nano/Desktop/images/06042025/22/19/image_06042025_22_19_24_9779.jpg
/home/nano/Desktop/images/06042025/22/19/image_06042025_22_19_14_10658.jpg
/home/nano/Desktop/images/06042025/22/18/image_06042025_22_19_03_9639.jpg
/home/nano/Desktop/images/06042025/22/18/image_06042025_22_18_54_9632.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350193780","1350193717","1350193710","1350193697","1350193802","1350193786"],"photo_ids_order":["1350193697","1350193710","1350193717","1350193780","1350193786","1350193802"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/fa75a098580fbef4b1e7786f5a6c5a7e.jpg","text":"TemporaryFile(/tmp/multipartBody2554658934707517764asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970834399,"filename":"image_06042025_22_19_14_10658.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/38cf041202d1cdd65746a2961eca00dc.jpg","text":"TemporaryFile(/tmp/multipartBody1891000622105994903asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970834399,"filename":"image_06042025_22_19_24_9779.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e8c291f55553c6c4c00be225432e7c79.jpg","text":"TemporaryFile(/tmp/multipartBody2315834583513687859asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970834399,"filename":"image_06042025_22_19_34_9762.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/8888c7888838d28429a46604e6c52a16.jpg","text":"TemporaryFile(/tmp/multipartBody8641234971434355911asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970834399,"filename":"image_06042025_22_19_43_9666.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/58e4611bcca499fcb37a620731138fde.jpg","text":"TemporaryFile(/tmp/multipartBody6920018644939490720asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970834399,"filename":"image_06042025_22_18_54_9632.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/2ae8040d20d6c99c24381664ac73c130.jpg","text":"TemporaryFile(/tmp/multipartBody6929255271013176614asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970834399,"filename":"image_06042025_22_19_03_9639.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350193717","file1":"1350193710","file0":"1350193697","file4":"1350193786","file5":"1350193802","file3":"1350193780"},"map_files_photo_id_array":[{"photo_id":"1350193802","filename":"file5"},{"photo_id":"1350193717","filename":"file2"},{"photo_id":"1350193786","filename":"file4"},{"photo_id":"1350193710","filename":"file1"},{"photo_id":"1350193697","filename":"file0"},{"photo_id":"1350193780","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350193780":["hashtag1","hashtag2"]},{"1350193717":["hashtag1","hashtag2"]},{"1350193710":["hashtag1","hashtag2"]},{"1350193697":["hashtag1","hashtag2"]},{"1350193802":["hashtag1","hashtag2"]},{"1350193786":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350193780, 1350193717, 1350193710, 1350193697, 1350193802, 1350193786)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.43552613258362 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 22:20:31.818133
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/22/20/image_06042025_22_20_43_9811.jpg', 2), ('/home/nano/Desktop/images/06042025/22/20/image_06042025_22_20_33_9631.jpg', 2), ('/home/nano/Desktop/images/06042025/22/20/image_06042025_22_20_24_10645.jpg', 2), ('/home/nano/Desktop/images/06042025/22/20/image_06042025_22_20_13_9675.jpg', 2), ('/home/nano/Desktop/images/06042025/22/19/image_06042025_22_20_03_9640.jpg', 2), ('/home/nano/Desktop/images/06042025/22/19/image_06042025_22_19_54_10644.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/22/20/image_06042025_22_20_43_9811.jpg', '/home/nano/Desktop/images/06042025/22/20/image_06042025_22_20_33_9631.jpg', '/home/nano/Desktop/images/06042025/22/20/image_06042025_22_20_24_10645.jpg', '/home/nano/Desktop/images/06042025/22/20/image_06042025_22_20_13_9675.jpg', '/home/nano/Desktop/images/06042025/22/19/image_06042025_22_20_03_9640.jpg', '/home/nano/Desktop/images/06042025/22/19/image_06042025_22_19_54_10644.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/22/20/image_06042025_22_20_43_9811.jpg
/home/nano/Desktop/images/06042025/22/20/image_06042025_22_20_33_9631.jpg
/home/nano/Desktop/images/06042025/22/20/image_06042025_22_20_24_10645.jpg
/home/nano/Desktop/images/06042025/22/20/image_06042025_22_20_13_9675.jpg
/home/nano/Desktop/images/06042025/22/19/image_06042025_22_20_03_9640.jpg
/home/nano/Desktop/images/06042025/22/19/image_06042025_22_19_54_10644.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350194062","1350194067","1350193929","1350194027","1350194000","1350194074"],"photo_ids_order":["1350193929","1350194000","1350194027","1350194062","1350194067","1350194074"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/1f2b57e7e68003bcfdf56f09a5d8e4cf.jpg","text":"TemporaryFile(/tmp/multipartBody3178100186973578978asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970893833,"filename":"image_06042025_22_20_13_9675.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/dc40f61103ec9005135f7b461b5a1665.jpg","text":"TemporaryFile(/tmp/multipartBody6498179478079391666asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970893833,"filename":"image_06042025_22_20_03_9640.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/0c150fee218dafb0eb3a931d67be83aa.jpg","text":"TemporaryFile(/tmp/multipartBody72710974502748467asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970893833,"filename":"image_06042025_22_20_43_9811.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ba803b2d10a7db93b31ea995e52caaf0.jpg","text":"TemporaryFile(/tmp/multipartBody753665474818233316asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970893833,"filename":"image_06042025_22_20_24_10645.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b01be301cab9cdbcd3b237c31baed87d.jpg","text":"TemporaryFile(/tmp/multipartBody3954378317594571908asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970893833,"filename":"image_06042025_22_20_33_9631.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/32b4ed1d32bf8dc0a73813f3ac829f7f.jpg","text":"TemporaryFile(/tmp/multipartBody4056713260231471854asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970893833,"filename":"image_06042025_22_19_54_10644.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350194027","file1":"1350194000","file0":"1350193929","file4":"1350194067","file5":"1350194074","file3":"1350194062"},"map_files_photo_id_array":[{"photo_id":"1350194074","filename":"file5"},{"photo_id":"1350194027","filename":"file2"},{"photo_id":"1350194067","filename":"file4"},{"photo_id":"1350194000","filename":"file1"},{"photo_id":"1350193929","filename":"file0"},{"photo_id":"1350194062","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350194062":["hashtag1","hashtag2"]},{"1350194067":["hashtag1","hashtag2"]},{"1350193929":["hashtag1","hashtag2"]},{"1350194027":["hashtag1","hashtag2"]},{"1350194000":["hashtag1","hashtag2"]},{"1350194074":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350194062, 1350194067, 1350193929, 1350194027, 1350194000, 1350194074)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.56756949424744 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 22:21:31.930345
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/22/21/image_06042025_22_21_44_10790.jpg', 2), ('/home/nano/Desktop/images/06042025/22/21/image_06042025_22_21_33_9781.jpg', 2), ('/home/nano/Desktop/images/06042025/22/21/image_06042025_22_21_23_9780.jpg', 2), ('/home/nano/Desktop/images/06042025/22/21/image_06042025_22_21_14_9803.jpg', 2), ('/home/nano/Desktop/images/06042025/22/20/image_06042025_22_21_04_9801.jpg', 2), ('/home/nano/Desktop/images/06042025/22/20/image_06042025_22_20_54_10795.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/22/21/image_06042025_22_21_44_10790.jpg', '/home/nano/Desktop/images/06042025/22/21/image_06042025_22_21_33_9781.jpg', '/home/nano/Desktop/images/06042025/22/21/image_06042025_22_21_23_9780.jpg', '/home/nano/Desktop/images/06042025/22/21/image_06042025_22_21_14_9803.jpg', '/home/nano/Desktop/images/06042025/22/20/image_06042025_22_21_04_9801.jpg', '/home/nano/Desktop/images/06042025/22/20/image_06042025_22_20_54_10795.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/22/21/image_06042025_22_21_44_10790.jpg
/home/nano/Desktop/images/06042025/22/21/image_06042025_22_21_33_9781.jpg
/home/nano/Desktop/images/06042025/22/21/image_06042025_22_21_23_9780.jpg
/home/nano/Desktop/images/06042025/22/21/image_06042025_22_21_14_9803.jpg
/home/nano/Desktop/images/06042025/22/20/image_06042025_22_21_04_9801.jpg
/home/nano/Desktop/images/06042025/22/20/image_06042025_22_20_54_10795.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 2.3079442977905273 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 22:22:02.349817
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/22/21/image_06042025_22_21_44_10790.jpg', 2), ('/home/nano/Desktop/images/06042025/22/21/image_06042025_22_21_33_9781.jpg', 2), ('/home/nano/Desktop/images/06042025/22/21/image_06042025_22_21_23_9780.jpg', 2), ('/home/nano/Desktop/images/06042025/22/21/image_06042025_22_21_14_9803.jpg', 2), ('/home/nano/Desktop/images/06042025/22/20/image_06042025_22_21_04_9801.jpg', 2), ('/home/nano/Desktop/images/06042025/22/20/image_06042025_22_20_54_10795.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/22/21/image_06042025_22_21_44_10790.jpg', '/home/nano/Desktop/images/06042025/22/21/image_06042025_22_21_33_9781.jpg', '/home/nano/Desktop/images/06042025/22/21/image_06042025_22_21_23_9780.jpg', '/home/nano/Desktop/images/06042025/22/21/image_06042025_22_21_14_9803.jpg', '/home/nano/Desktop/images/06042025/22/20/image_06042025_22_21_04_9801.jpg', '/home/nano/Desktop/images/06042025/22/20/image_06042025_22_20_54_10795.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/22/21/image_06042025_22_21_44_10790.jpg
/home/nano/Desktop/images/06042025/22/21/image_06042025_22_21_33_9781.jpg
/home/nano/Desktop/images/06042025/22/21/image_06042025_22_21_23_9780.jpg
/home/nano/Desktop/images/06042025/22/21/image_06042025_22_21_14_9803.jpg
/home/nano/Desktop/images/06042025/22/20/image_06042025_22_21_04_9801.jpg
/home/nano/Desktop/images/06042025/22/20/image_06042025_22_20_54_10795.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350194310","1350194345","1350194348","1350194222","1350194306","1350194341"],"photo_ids_order":["1350194222","1350194306","1350194310","1350194341","1350194345","1350194348"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4b70eb856013749ff77944db6e5dff32.jpg","text":"TemporaryFile(/tmp/multipartBody7856556452752989325asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970984524,"filename":"image_06042025_22_21_23_9780.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/eda4f9a8345e73b1f1ba47488252a1c4.jpg","text":"TemporaryFile(/tmp/multipartBody4731459148195906285asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970984524,"filename":"image_06042025_22_21_04_9801.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/422263af1c5d12ecbec5d20cd80250e2.jpg","text":"TemporaryFile(/tmp/multipartBody8915545471004961255asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970984524,"filename":"image_06042025_22_20_54_10795.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/50c2af7734150ddb72aa86fcc246284b.jpg","text":"TemporaryFile(/tmp/multipartBody8241830251688577752asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970984524,"filename":"image_06042025_22_21_44_10790.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/33989c0ee72f0efaa894369d74a3bb94.jpg","text":"TemporaryFile(/tmp/multipartBody7643672471212375022asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970984524,"filename":"image_06042025_22_21_33_9781.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/d1645af2b838f1e352f29e312c3adf88.jpg","text":"TemporaryFile(/tmp/multipartBody5834671690170927813asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743970984524,"filename":"image_06042025_22_21_14_9803.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350194310","file1":"1350194306","file0":"1350194222","file4":"1350194345","file5":"1350194348","file3":"1350194341"},"map_files_photo_id_array":[{"photo_id":"1350194348","filename":"file5"},{"photo_id":"1350194310","filename":"file2"},{"photo_id":"1350194345","filename":"file4"},{"photo_id":"1350194306","filename":"file1"},{"photo_id":"1350194222","filename":"file0"},{"photo_id":"1350194341","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350194310":["hashtag1","hashtag2"]},{"1350194345":["hashtag1","hashtag2"]},{"1350194348":["hashtag1","hashtag2"]},{"1350194222":["hashtag1","hashtag2"]},{"1350194306":["hashtag1","hashtag2"]},{"1350194341":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350194310, 1350194345, 1350194348, 1350194222, 1350194306, 1350194341)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.345317125320435 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 22:23:02.926214
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/22/22/image_06042025_22_22_44_10659.jpg', 2), ('/home/nano/Desktop/images/06042025/22/22/image_06042025_22_22_33_9647.jpg', 2), ('/home/nano/Desktop/images/06042025/22/22/image_06042025_22_22_24_9663.jpg', 2), ('/home/nano/Desktop/images/06042025/22/22/image_06042025_22_22_14_10675.jpg', 2), ('/home/nano/Desktop/images/06042025/22/21/image_06042025_22_21_54_9779.jpg', 2), ('/home/nano/Desktop/images/06042025/19/52/image_06042025_19_52_53_9648.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/22/22/image_06042025_22_22_44_10659.jpg', '/home/nano/Desktop/images/06042025/22/22/image_06042025_22_22_33_9647.jpg', '/home/nano/Desktop/images/06042025/22/22/image_06042025_22_22_24_9663.jpg', '/home/nano/Desktop/images/06042025/22/22/image_06042025_22_22_14_10675.jpg', '/home/nano/Desktop/images/06042025/22/21/image_06042025_22_21_54_9779.jpg', '/home/nano/Desktop/images/06042025/19/52/image_06042025_19_52_53_9648.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/22/22/image_06042025_22_22_44_10659.jpg
/home/nano/Desktop/images/06042025/22/22/image_06042025_22_22_33_9647.jpg
/home/nano/Desktop/images/06042025/22/22/image_06042025_22_22_24_9663.jpg
/home/nano/Desktop/images/06042025/22/22/image_06042025_22_22_14_10675.jpg
/home/nano/Desktop/images/06042025/22/21/image_06042025_22_21_54_9779.jpg
/home/nano/Desktop/images/06042025/19/52/image_06042025_19_52_53_9648.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350194379","1350194373","1350194454","1350194376","1350194381","1350194384"],"photo_ids_order":["1350194373","1350194376","1350194379","1350194381","1350194384","1350194454"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/dbdeab3a30d49beac0e4c24bb2f6ecc4.jpg","text":"TemporaryFile(/tmp/multipartBody8756371601244348410asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971045987,"filename":"image_06042025_22_22_24_9663.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/264660f381f0b19efd23b226fec49d43.jpg","text":"TemporaryFile(/tmp/multipartBody8271413701876888394asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971045987,"filename":"image_06042025_22_22_44_10659.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4bbeff667a2d787fcbf6e40024ae4aa2.jpg","text":"TemporaryFile(/tmp/multipartBody503286430033681170asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971045987,"filename":"image_06042025_19_52_53_9648.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/1a003acf9cf9eabb83ec1082178da25a.jpg","text":"TemporaryFile(/tmp/multipartBody3809205256013916303asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971045987,"filename":"image_06042025_22_22_33_9647.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/8f788546c88193037bb7d58ebdef87aa.jpg","text":"TemporaryFile(/tmp/multipartBody6072584819241326316asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971045987,"filename":"image_06042025_22_22_14_10675.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/5bd568aacf6779a723c798a756b58a04.jpg","text":"TemporaryFile(/tmp/multipartBody5320774496636560819asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971045987,"filename":"image_06042025_22_21_54_9779.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350194379","file1":"1350194376","file0":"1350194373","file4":"1350194384","file5":"1350194454","file3":"1350194381"},"map_files_photo_id_array":[{"photo_id":"1350194454","filename":"file5"},{"photo_id":"1350194379","filename":"file2"},{"photo_id":"1350194384","filename":"file4"},{"photo_id":"1350194376","filename":"file1"},{"photo_id":"1350194373","filename":"file0"},{"photo_id":"1350194381","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350194379":["hashtag1","hashtag2"]},{"1350194373":["hashtag1","hashtag2"]},{"1350194454":["hashtag1","hashtag2"]},{"1350194376":["hashtag1","hashtag2"]},{"1350194381":["hashtag1","hashtag2"]},{"1350194384":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350194379, 1350194373, 1350194454, 1350194376, 1350194381, 1350194384)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.73750710487366 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 22:24:03.093987
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/22/23/image_06042025_22_23_44_10655.jpg', 2), ('/home/nano/Desktop/images/06042025/22/23/image_06042025_22_23_33_9646.jpg', 2), ('/home/nano/Desktop/images/06042025/22/23/image_06042025_22_23_24_9646.jpg', 2), ('/home/nano/Desktop/images/06042025/22/22/image_06042025_22_23_03_9654.jpg', 2), ('/home/nano/Desktop/images/06042025/22/22/image_06042025_22_22_54_9648.jpg', 2), ('/home/nano/Desktop/images/06042025/19/52/image_06042025_19_52_44_9653.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/22/23/image_06042025_22_23_44_10655.jpg', '/home/nano/Desktop/images/06042025/22/23/image_06042025_22_23_33_9646.jpg', '/home/nano/Desktop/images/06042025/22/23/image_06042025_22_23_24_9646.jpg', '/home/nano/Desktop/images/06042025/22/22/image_06042025_22_23_03_9654.jpg', '/home/nano/Desktop/images/06042025/22/22/image_06042025_22_22_54_9648.jpg', '/home/nano/Desktop/images/06042025/19/52/image_06042025_19_52_44_9653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/22/23/image_06042025_22_23_44_10655.jpg
/home/nano/Desktop/images/06042025/22/23/image_06042025_22_23_33_9646.jpg
/home/nano/Desktop/images/06042025/22/23/image_06042025_22_23_24_9646.jpg
/home/nano/Desktop/images/06042025/22/22/image_06042025_22_23_03_9654.jpg
/home/nano/Desktop/images/06042025/22/22/image_06042025_22_22_54_9648.jpg
/home/nano/Desktop/images/06042025/19/52/image_06042025_19_52_44_9653.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350194533","1350194527","1350194535","1350194538","1350194523","1350194537"],"photo_ids_order":["1350194523","1350194527","1350194533","1350194535","1350194537","1350194538"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/0fa83688f2446bb158c9540f9d907f20.jpg","text":"TemporaryFile(/tmp/multipartBody6056787544709552700asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971104841,"filename":"image_06042025_22_23_24_9646.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f97939380316d58890213abdee87ee3b.jpg","text":"TemporaryFile(/tmp/multipartBody2592808104489187941asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971104841,"filename":"image_06042025_22_23_33_9646.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/da4a01c5ccdb78c7eec1cfcf3a51ee72.jpg","text":"TemporaryFile(/tmp/multipartBody3372782913036735906asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971104841,"filename":"image_06042025_22_23_03_9654.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e63bf9636774c346815700f264ff8199.jpg","text":"TemporaryFile(/tmp/multipartBody66123564518980544asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971104841,"filename":"image_06042025_19_52_44_9653.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/0cf86ed5ea4b7b10777aa14635172b5a.jpg","text":"TemporaryFile(/tmp/multipartBody4806746994884306735asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971104841,"filename":"image_06042025_22_23_44_10655.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/46ce6b1429fe754e7a2d970f0426cf45.jpg","text":"TemporaryFile(/tmp/multipartBody1629446908020607015asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971104841,"filename":"image_06042025_22_22_54_9648.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350194533","file1":"1350194527","file0":"1350194523","file4":"1350194537","file5":"1350194538","file3":"1350194535"},"map_files_photo_id_array":[{"photo_id":"1350194538","filename":"file5"},{"photo_id":"1350194533","filename":"file2"},{"photo_id":"1350194537","filename":"file4"},{"photo_id":"1350194527","filename":"file1"},{"photo_id":"1350194523","filename":"file0"},{"photo_id":"1350194535","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350194533":["hashtag1","hashtag2"]},{"1350194527":["hashtag1","hashtag2"]},{"1350194535":["hashtag1","hashtag2"]},{"1350194538":["hashtag1","hashtag2"]},{"1350194523":["hashtag1","hashtag2"]},{"1350194537":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350194533, 1350194527, 1350194535, 1350194538, 1350194523, 1350194537)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.4947464466095 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 22:25:02.976448
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/22/24/image_06042025_22_24_44_10660.jpg', 2), ('/home/nano/Desktop/images/06042025/22/24/image_06042025_22_24_24_9664.jpg', 2), ('/home/nano/Desktop/images/06042025/22/24/image_06042025_22_24_14_10672.jpg', 2), ('/home/nano/Desktop/images/06042025/22/23/image_06042025_22_23_54_9645.jpg', 2), ('/home/nano/Desktop/images/06042025/19/52/image_06042025_19_52_34_10656.jpg', 2), ('/home/nano/Desktop/images/06042025/19/52/image_06042025_19_52_23_9649.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/22/24/image_06042025_22_24_44_10660.jpg', '/home/nano/Desktop/images/06042025/22/24/image_06042025_22_24_24_9664.jpg', '/home/nano/Desktop/images/06042025/22/24/image_06042025_22_24_14_10672.jpg', '/home/nano/Desktop/images/06042025/22/23/image_06042025_22_23_54_9645.jpg', '/home/nano/Desktop/images/06042025/19/52/image_06042025_19_52_34_10656.jpg', '/home/nano/Desktop/images/06042025/19/52/image_06042025_19_52_23_9649.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/22/24/image_06042025_22_24_44_10660.jpg
/home/nano/Desktop/images/06042025/22/24/image_06042025_22_24_24_9664.jpg
/home/nano/Desktop/images/06042025/22/24/image_06042025_22_24_14_10672.jpg
/home/nano/Desktop/images/06042025/22/23/image_06042025_22_23_54_9645.jpg
/home/nano/Desktop/images/06042025/19/52/image_06042025_19_52_34_10656.jpg
/home/nano/Desktop/images/06042025/19/52/image_06042025_19_52_23_9649.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350194605","1350194589","1350194591","1350194604","1350194594","1350194600"],"photo_ids_order":["1350194589","1350194591","1350194594","1350194600","1350194604","1350194605"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/897b1930edadcbc1eb93d37cf69e946d.jpg","text":"TemporaryFile(/tmp/multipartBody7078069903481015771asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971166449,"filename":"image_06042025_19_52_23_9649.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/de7f5d6c3d2aa39b250ba89e59b3bb58.jpg","text":"TemporaryFile(/tmp/multipartBody1119995630258816067asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971166449,"filename":"image_06042025_22_24_44_10660.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/3571e5b73c3b7810b2308f9d18b7807b.jpg","text":"TemporaryFile(/tmp/multipartBody3720257338961665323asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971166449,"filename":"image_06042025_22_24_24_9664.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/1568297e471f5b8b65ed8dfc73753811.jpg","text":"TemporaryFile(/tmp/multipartBody7638364000197981946asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971166449,"filename":"image_06042025_19_52_34_10656.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b3354cf3684ec3247d8fa33b1f7ee55b.jpg","text":"TemporaryFile(/tmp/multipartBody1665996460061686492asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971166449,"filename":"image_06042025_22_24_14_10672.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b4bc357b26efe0c856cd7e7c02ae29f6.jpg","text":"TemporaryFile(/tmp/multipartBody7848993322135232606asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971166449,"filename":"image_06042025_22_23_54_9645.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350194594","file1":"1350194591","file0":"1350194589","file4":"1350194604","file5":"1350194605","file3":"1350194600"},"map_files_photo_id_array":[{"photo_id":"1350194605","filename":"file5"},{"photo_id":"1350194594","filename":"file2"},{"photo_id":"1350194604","filename":"file4"},{"photo_id":"1350194591","filename":"file1"},{"photo_id":"1350194589","filename":"file0"},{"photo_id":"1350194600","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350194605":["hashtag1","hashtag2"]},{"1350194589":["hashtag1","hashtag2"]},{"1350194591":["hashtag1","hashtag2"]},{"1350194604":["hashtag1","hashtag2"]},{"1350194594":["hashtag1","hashtag2"]},{"1350194600":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350194605, 1350194589, 1350194591, 1350194604, 1350194594, 1350194600)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.77811932563782 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 22:26:02.855390
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/22/25/image_06042025_22_25_44_9750.jpg', 2), ('/home/nano/Desktop/images/06042025/22/25/image_06042025_22_25_34_10758.jpg', 2), ('/home/nano/Desktop/images/06042025/22/25/image_06042025_22_25_23_9795.jpg', 2), ('/home/nano/Desktop/images/06042025/22/25/image_06042025_22_25_13_9816.jpg', 2), ('/home/nano/Desktop/images/06042025/22/24/image_06042025_22_25_04_9819.jpg', 2), ('/home/nano/Desktop/images/06042025/22/24/image_06042025_22_24_54_9861.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/22/25/image_06042025_22_25_44_9750.jpg', '/home/nano/Desktop/images/06042025/22/25/image_06042025_22_25_34_10758.jpg', '/home/nano/Desktop/images/06042025/22/25/image_06042025_22_25_23_9795.jpg', '/home/nano/Desktop/images/06042025/22/25/image_06042025_22_25_13_9816.jpg', '/home/nano/Desktop/images/06042025/22/24/image_06042025_22_25_04_9819.jpg', '/home/nano/Desktop/images/06042025/22/24/image_06042025_22_24_54_9861.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/22/25/image_06042025_22_25_44_9750.jpg
/home/nano/Desktop/images/06042025/22/25/image_06042025_22_25_34_10758.jpg
/home/nano/Desktop/images/06042025/22/25/image_06042025_22_25_23_9795.jpg
/home/nano/Desktop/images/06042025/22/25/image_06042025_22_25_13_9816.jpg
/home/nano/Desktop/images/06042025/22/24/image_06042025_22_25_04_9819.jpg
/home/nano/Desktop/images/06042025/22/24/image_06042025_22_24_54_9861.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350194669","1350194666","1350194648","1350194659","1350194662","1350194656"],"photo_ids_order":["1350194648","1350194656","1350194659","1350194662","1350194666","1350194669"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/65cdce027918cb0d83e89add64af89ef.jpg","text":"TemporaryFile(/tmp/multipartBody8085922006640097426asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971224675,"filename":"image_06042025_22_24_54_9861.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4be6c11884c337a3fccc84861da9420c.jpg","text":"TemporaryFile(/tmp/multipartBody1446165392145920637asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971224675,"filename":"image_06042025_22_25_04_9819.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/98b0c5413e9be2bac10a19c72aa8110c.jpg","text":"TemporaryFile(/tmp/multipartBody8973668426684417054asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971224675,"filename":"image_06042025_22_25_44_9750.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/0d92fb52d90a6aae0ea0f32bd14bf831.jpg","text":"TemporaryFile(/tmp/multipartBody1381972993649826682asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971224675,"filename":"image_06042025_22_25_23_9795.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/431190cd328d868b96926b5d6c96f121.jpg","text":"TemporaryFile(/tmp/multipartBody9145393180558511758asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971224675,"filename":"image_06042025_22_25_13_9816.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/cf2651b79f7551555def510c1f5974dd.jpg","text":"TemporaryFile(/tmp/multipartBody6327374905309307477asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971224675,"filename":"image_06042025_22_25_34_10758.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350194659","file1":"1350194656","file0":"1350194648","file4":"1350194666","file5":"1350194669","file3":"1350194662"},"map_files_photo_id_array":[{"photo_id":"1350194669","filename":"file5"},{"photo_id":"1350194659","filename":"file2"},{"photo_id":"1350194666","filename":"file4"},{"photo_id":"1350194656","filename":"file1"},{"photo_id":"1350194648","filename":"file0"},{"photo_id":"1350194662","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350194669":["hashtag1","hashtag2"]},{"1350194666":["hashtag1","hashtag2"]},{"1350194648":["hashtag1","hashtag2"]},{"1350194659":["hashtag1","hashtag2"]},{"1350194662":["hashtag1","hashtag2"]},{"1350194656":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350194669, 1350194666, 1350194648, 1350194659, 1350194662, 1350194656)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.25468826293945 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 22:27:03.059026
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/22/26/image_06042025_22_26_43_9651.jpg', 2), ('/home/nano/Desktop/images/06042025/22/26/image_06042025_22_26_34_9750.jpg', 2), ('/home/nano/Desktop/images/06042025/22/26/image_06042025_22_26_24_9748.jpg', 2), ('/home/nano/Desktop/images/06042025/22/26/image_06042025_22_26_14_10778.jpg', 2), ('/home/nano/Desktop/images/06042025/22/25/image_06042025_22_26_03_9761.jpg', 2), ('/home/nano/Desktop/images/06042025/22/25/image_06042025_22_25_54_9747.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/22/26/image_06042025_22_26_43_9651.jpg', '/home/nano/Desktop/images/06042025/22/26/image_06042025_22_26_34_9750.jpg', '/home/nano/Desktop/images/06042025/22/26/image_06042025_22_26_24_9748.jpg', '/home/nano/Desktop/images/06042025/22/26/image_06042025_22_26_14_10778.jpg', '/home/nano/Desktop/images/06042025/22/25/image_06042025_22_26_03_9761.jpg', '/home/nano/Desktop/images/06042025/22/25/image_06042025_22_25_54_9747.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/22/26/image_06042025_22_26_43_9651.jpg
/home/nano/Desktop/images/06042025/22/26/image_06042025_22_26_34_9750.jpg
/home/nano/Desktop/images/06042025/22/26/image_06042025_22_26_24_9748.jpg
/home/nano/Desktop/images/06042025/22/26/image_06042025_22_26_14_10778.jpg
/home/nano/Desktop/images/06042025/22/25/image_06042025_22_26_03_9761.jpg
/home/nano/Desktop/images/06042025/22/25/image_06042025_22_25_54_9747.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350194862","1350194763","1350194844","1350194766","1350194789","1350194866"],"photo_ids_order":["1350194763","1350194766","1350194789","1350194844","1350194862","1350194866"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/529dc6d0f427467a3b4f4e7a738aa1f0.jpg","text":"TemporaryFile(/tmp/multipartBody4646566113720948935asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971285146,"filename":"image_06042025_22_26_03_9761.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/0ceb6319d17e8dbcba1ab44a85e0203b.jpg","text":"TemporaryFile(/tmp/multipartBody2912966982327218825asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971285146,"filename":"image_06042025_22_26_43_9651.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/57ca09cba714f62e9b194953982e9a0e.jpg","text":"TemporaryFile(/tmp/multipartBody2890910194798240508asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971285146,"filename":"image_06042025_22_26_14_10778.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/007026ffc36f653d5e917f1f44dac402.jpg","text":"TemporaryFile(/tmp/multipartBody6531108594899410600asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971285146,"filename":"image_06042025_22_26_34_9750.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/6181e5b9bc397f5c669f224ded28fe5a.jpg","text":"TemporaryFile(/tmp/multipartBody2243883217091262377asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971285146,"filename":"image_06042025_22_26_24_9748.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/636f40bd77b9a50f2d4a286999981001.jpg","text":"TemporaryFile(/tmp/multipartBody3785945987300278057asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971285146,"filename":"image_06042025_22_25_54_9747.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350194789","file1":"1350194766","file0":"1350194763","file4":"1350194862","file5":"1350194866","file3":"1350194844"},"map_files_photo_id_array":[{"photo_id":"1350194866","filename":"file5"},{"photo_id":"1350194789","filename":"file2"},{"photo_id":"1350194862","filename":"file4"},{"photo_id":"1350194766","filename":"file1"},{"photo_id":"1350194763","filename":"file0"},{"photo_id":"1350194844","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350194862":["hashtag1","hashtag2"]},{"1350194763":["hashtag1","hashtag2"]},{"1350194844":["hashtag1","hashtag2"]},{"1350194766":["hashtag1","hashtag2"]},{"1350194789":["hashtag1","hashtag2"]},{"1350194866":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350194862, 1350194763, 1350194844, 1350194766, 1350194789, 1350194866)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.691161155700684 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 22:28:03.163496
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/22/27/image_06042025_22_28_03_9668.jpg', 2), ('/home/nano/Desktop/images/06042025/22/27/image_06042025_22_27_24_10658.jpg', 2), ('/home/nano/Desktop/images/06042025/22/27/image_06042025_22_27_13_9667.jpg', 2), ('/home/nano/Desktop/images/06042025/22/26/image_06042025_22_27_04_9667.jpg', 2), ('/home/nano/Desktop/images/06042025/22/26/image_06042025_22_26_54_10661.jpg', 2), ('/home/nano/Desktop/images/06042025/19/52/image_06042025_19_52_14_9688.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/22/27/image_06042025_22_28_03_9668.jpg', '/home/nano/Desktop/images/06042025/22/27/image_06042025_22_27_24_10658.jpg', '/home/nano/Desktop/images/06042025/22/27/image_06042025_22_27_13_9667.jpg', '/home/nano/Desktop/images/06042025/22/26/image_06042025_22_27_04_9667.jpg', '/home/nano/Desktop/images/06042025/22/26/image_06042025_22_26_54_10661.jpg', '/home/nano/Desktop/images/06042025/19/52/image_06042025_19_52_14_9688.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/22/27/image_06042025_22_28_03_9668.jpg
/home/nano/Desktop/images/06042025/22/27/image_06042025_22_27_24_10658.jpg
/home/nano/Desktop/images/06042025/22/27/image_06042025_22_27_13_9667.jpg
/home/nano/Desktop/images/06042025/22/26/image_06042025_22_27_04_9667.jpg
/home/nano/Desktop/images/06042025/22/26/image_06042025_22_26_54_10661.jpg
/home/nano/Desktop/images/06042025/19/52/image_06042025_19_52_14_9688.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350194935","1350194925","1350194927","1350194930","1350194938","1350194932"],"photo_ids_order":["1350194925","1350194927","1350194930","1350194932","1350194935","1350194938"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/d2f45a80ec04f894683d0c1e638cde9b.jpg","text":"TemporaryFile(/tmp/multipartBody6455407201608691163asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971344459,"filename":"image_06042025_22_26_54_10661.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/cb85b81086d1c0dba502a691139faab4.jpg","text":"TemporaryFile(/tmp/multipartBody1927421564820263062asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971344459,"filename":"image_06042025_22_28_03_9668.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ff61352e12d2c1c959d1f9baeb1bb220.jpg","text":"TemporaryFile(/tmp/multipartBody7866139354021370962asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971344459,"filename":"image_06042025_22_27_24_10658.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/9a36254b9c9728fbd512b1e0c928c1ac.jpg","text":"TemporaryFile(/tmp/multipartBody7600113475803300155asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971344459,"filename":"image_06042025_22_27_13_9667.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f8f95c480ebb07940a49893d01385fb2.jpg","text":"TemporaryFile(/tmp/multipartBody5107600559881666548asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971344459,"filename":"image_06042025_19_52_14_9688.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b0409f177cfcb2a0b85c3f4c57e7e959.jpg","text":"TemporaryFile(/tmp/multipartBody3626579482132203365asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971344459,"filename":"image_06042025_22_27_04_9667.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350194930","file1":"1350194927","file0":"1350194925","file4":"1350194935","file5":"1350194938","file3":"1350194932"},"map_files_photo_id_array":[{"photo_id":"1350194938","filename":"file5"},{"photo_id":"1350194930","filename":"file2"},{"photo_id":"1350194935","filename":"file4"},{"photo_id":"1350194927","filename":"file1"},{"photo_id":"1350194925","filename":"file0"},{"photo_id":"1350194932","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350194935":["hashtag1","hashtag2"]},{"1350194925":["hashtag1","hashtag2"]},{"1350194927":["hashtag1","hashtag2"]},{"1350194930":["hashtag1","hashtag2"]},{"1350194938":["hashtag1","hashtag2"]},{"1350194932":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350194935, 1350194925, 1350194927, 1350194930, 1350194938, 1350194932)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.78035807609558 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 22:29:03.700719
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/22/28/image_06042025_22_28_44_10648.jpg', 2), ('/home/nano/Desktop/images/06042025/22/28/image_06042025_22_28_33_9640.jpg', 2), ('/home/nano/Desktop/images/06042025/22/27/image_06042025_22_27_43_9647.jpg', 2), ('/home/nano/Desktop/images/06042025/19/51/image_06042025_19_52_04_10675.jpg', 2), ('/home/nano/Desktop/images/06042025/19/51/image_06042025_19_51_53_9648.jpg', 2), ('/home/nano/Desktop/images/06042025/19/51/image_06042025_19_51_44_9642.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/22/28/image_06042025_22_28_44_10648.jpg', '/home/nano/Desktop/images/06042025/22/28/image_06042025_22_28_33_9640.jpg', '/home/nano/Desktop/images/06042025/22/27/image_06042025_22_27_43_9647.jpg', '/home/nano/Desktop/images/06042025/19/51/image_06042025_19_52_04_10675.jpg', '/home/nano/Desktop/images/06042025/19/51/image_06042025_19_51_53_9648.jpg', '/home/nano/Desktop/images/06042025/19/51/image_06042025_19_51_44_9642.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/22/28/image_06042025_22_28_44_10648.jpg
/home/nano/Desktop/images/06042025/22/28/image_06042025_22_28_33_9640.jpg
/home/nano/Desktop/images/06042025/22/27/image_06042025_22_27_43_9647.jpg
/home/nano/Desktop/images/06042025/19/51/image_06042025_19_52_04_10675.jpg
/home/nano/Desktop/images/06042025/19/51/image_06042025_19_51_53_9648.jpg
/home/nano/Desktop/images/06042025/19/51/image_06042025_19_51_44_9642.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350195042","1350195044","1350195035","1350195038","1350195139","1350195046"],"photo_ids_order":["1350195035","1350195038","1350195042","1350195044","1350195046","1350195139"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b48ec542e67b72fff8d0567d62e1feed.jpg","text":"TemporaryFile(/tmp/multipartBody8115224990933178100asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971406160,"filename":"image_06042025_22_27_43_9647.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/8a65e0a03c813d066c5f9fa5f2c7f16c.jpg","text":"TemporaryFile(/tmp/multipartBody3764271275427419685asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971406160,"filename":"image_06042025_19_52_04_10675.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/905481817083c0b54cfb9888ae8aa12d.jpg","text":"TemporaryFile(/tmp/multipartBody3317068207307447387asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971406160,"filename":"image_06042025_22_28_44_10648.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/906c7b3371b7853c2b1bf808e089f5e4.jpg","text":"TemporaryFile(/tmp/multipartBody3346652428299825157asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971406160,"filename":"image_06042025_22_28_33_9640.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/06168fe24d9ad77cda4c656407c15b32.jpg","text":"TemporaryFile(/tmp/multipartBody5447209684530136036asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971406160,"filename":"image_06042025_19_51_44_9642.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e2eacfed2b5635763df4d990ef8d4f10.jpg","text":"TemporaryFile(/tmp/multipartBody7425096772096806028asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971406160,"filename":"image_06042025_19_51_53_9648.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350195042","file1":"1350195038","file0":"1350195035","file4":"1350195046","file5":"1350195139","file3":"1350195044"},"map_files_photo_id_array":[{"photo_id":"1350195139","filename":"file5"},{"photo_id":"1350195042","filename":"file2"},{"photo_id":"1350195046","filename":"file4"},{"photo_id":"1350195038","filename":"file1"},{"photo_id":"1350195035","filename":"file0"},{"photo_id":"1350195044","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350195042":["hashtag1","hashtag2"]},{"1350195044":["hashtag1","hashtag2"]},{"1350195035":["hashtag1","hashtag2"]},{"1350195038":["hashtag1","hashtag2"]},{"1350195139":["hashtag1","hashtag2"]},{"1350195046":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350195042, 1350195044, 1350195035, 1350195038, 1350195139, 1350195046)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 48.005603551864624 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 22:30:02.419067
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/22/29/image_06042025_22_29_44_10649.jpg', 2), ('/home/nano/Desktop/images/06042025/22/29/image_06042025_22_29_24_9640.jpg', 2), ('/home/nano/Desktop/images/06042025/22/29/image_06042025_22_29_14_10673.jpg', 2), ('/home/nano/Desktop/images/06042025/22/28/image_06042025_22_29_03_9641.jpg', 2), ('/home/nano/Desktop/images/06042025/22/28/image_06042025_22_28_54_9640.jpg', 2), ('/home/nano/Desktop/images/06042025/19/51/image_06042025_19_51_34_10653.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/22/29/image_06042025_22_29_44_10649.jpg', '/home/nano/Desktop/images/06042025/22/29/image_06042025_22_29_24_9640.jpg', '/home/nano/Desktop/images/06042025/22/29/image_06042025_22_29_14_10673.jpg', '/home/nano/Desktop/images/06042025/22/28/image_06042025_22_29_03_9641.jpg', '/home/nano/Desktop/images/06042025/22/28/image_06042025_22_28_54_9640.jpg', '/home/nano/Desktop/images/06042025/19/51/image_06042025_19_51_34_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/22/29/image_06042025_22_29_44_10649.jpg
/home/nano/Desktop/images/06042025/22/29/image_06042025_22_29_24_9640.jpg
/home/nano/Desktop/images/06042025/22/29/image_06042025_22_29_14_10673.jpg
/home/nano/Desktop/images/06042025/22/28/image_06042025_22_29_03_9641.jpg
/home/nano/Desktop/images/06042025/22/28/image_06042025_22_28_54_9640.jpg
/home/nano/Desktop/images/06042025/19/51/image_06042025_19_51_34_10653.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350195165","1350195161","1350195158","1350195167","1350195154","1350195163"],"photo_ids_order":["1350195154","1350195158","1350195161","1350195163","1350195165","1350195167"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/07556d2fd40d20c510eb28879501bb66.jpg","text":"TemporaryFile(/tmp/multipartBody3391307649511517280asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971463565,"filename":"image_06042025_22_28_54_9640.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/81dcbe6ecc44b9038ee848a761b52ae3.jpg","text":"TemporaryFile(/tmp/multipartBody3695794191929936291asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971463565,"filename":"image_06042025_22_29_14_10673.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/46e2b648e3535445002bb62c859cd1be.jpg","text":"TemporaryFile(/tmp/multipartBody6562883491046737810asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971463565,"filename":"image_06042025_22_29_24_9640.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/749c3764643a0c3226e989a058e38a39.jpg","text":"TemporaryFile(/tmp/multipartBody8017095901001754679asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971463565,"filename":"image_06042025_19_51_34_10653.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/7c42ef7b0493d1e2c13f804f9426dc90.jpg","text":"TemporaryFile(/tmp/multipartBody8473138703078677938asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971463565,"filename":"image_06042025_22_29_44_10649.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ebe9112d20a209e8772f21dc8f839e3a.jpg","text":"TemporaryFile(/tmp/multipartBody1342163104655720049asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971463565,"filename":"image_06042025_22_29_03_9641.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350195161","file1":"1350195158","file0":"1350195154","file4":"1350195165","file5":"1350195167","file3":"1350195163"},"map_files_photo_id_array":[{"photo_id":"1350195167","filename":"file5"},{"photo_id":"1350195161","filename":"file2"},{"photo_id":"1350195165","filename":"file4"},{"photo_id":"1350195158","filename":"file1"},{"photo_id":"1350195154","filename":"file0"},{"photo_id":"1350195163","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350195165":["hashtag1","hashtag2"]},{"1350195161":["hashtag1","hashtag2"]},{"1350195158":["hashtag1","hashtag2"]},{"1350195167":["hashtag1","hashtag2"]},{"1350195154":["hashtag1","hashtag2"]},{"1350195163":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350195165, 1350195161, 1350195158, 1350195167, 1350195154, 1350195163)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 37.24253535270691 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 22:31:02.466156
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/22/30/image_06042025_22_30_44_9835.jpg', 2), ('/home/nano/Desktop/images/06042025/22/30/image_06042025_22_30_34_9833.jpg', 2), ('/home/nano/Desktop/images/06042025/22/30/image_06042025_22_30_24_9863.jpg', 2), ('/home/nano/Desktop/images/06042025/22/30/image_06042025_22_30_14_10710.jpg', 2), ('/home/nano/Desktop/images/06042025/22/29/image_06042025_22_30_03_9664.jpg', 2), ('/home/nano/Desktop/images/06042025/22/29/image_06042025_22_29_54_9643.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/22/30/image_06042025_22_30_44_9835.jpg', '/home/nano/Desktop/images/06042025/22/30/image_06042025_22_30_34_9833.jpg', '/home/nano/Desktop/images/06042025/22/30/image_06042025_22_30_24_9863.jpg', '/home/nano/Desktop/images/06042025/22/30/image_06042025_22_30_14_10710.jpg', '/home/nano/Desktop/images/06042025/22/29/image_06042025_22_30_03_9664.jpg', '/home/nano/Desktop/images/06042025/22/29/image_06042025_22_29_54_9643.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/22/30/image_06042025_22_30_44_9835.jpg
/home/nano/Desktop/images/06042025/22/30/image_06042025_22_30_34_9833.jpg
/home/nano/Desktop/images/06042025/22/30/image_06042025_22_30_24_9863.jpg
/home/nano/Desktop/images/06042025/22/30/image_06042025_22_30_14_10710.jpg
/home/nano/Desktop/images/06042025/22/29/image_06042025_22_30_03_9664.jpg
/home/nano/Desktop/images/06042025/22/29/image_06042025_22_29_54_9643.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350195363","1350195366","1350195360","1350195320","1350195314","1350195355"],"photo_ids_order":["1350195314","1350195320","1350195355","1350195360","1350195363","1350195366"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/d167bdebc2bbbb843aa37b0eb0323f23.jpg","text":"TemporaryFile(/tmp/multipartBody6176202550613463190asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971526192,"filename":"image_06042025_22_30_03_9664.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/1879a55ec6cf3a37ecf549933e1ffc15.jpg","text":"TemporaryFile(/tmp/multipartBody2528436988158535803asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971526192,"filename":"image_06042025_22_29_54_9643.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b48065659a887891a70c34018d0e8dfd.jpg","text":"TemporaryFile(/tmp/multipartBody7567014982049847198asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971526192,"filename":"image_06042025_22_30_14_10710.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/58ff08bad2daffeb160db82f57b73e3e.jpg","text":"TemporaryFile(/tmp/multipartBody909388474272724504asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971526192,"filename":"image_06042025_22_30_34_9833.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/843f7d93d45be095c5876dd26d393305.jpg","text":"TemporaryFile(/tmp/multipartBody5781693075580992738asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971526192,"filename":"image_06042025_22_30_44_9835.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/9f13a422590f58975dc1d97f6f0aa135.jpg","text":"TemporaryFile(/tmp/multipartBody770201999100755502asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971526192,"filename":"image_06042025_22_30_24_9863.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350195355","file1":"1350195320","file0":"1350195314","file4":"1350195363","file5":"1350195366","file3":"1350195360"},"map_files_photo_id_array":[{"photo_id":"1350195366","filename":"file5"},{"photo_id":"1350195355","filename":"file2"},{"photo_id":"1350195363","filename":"file4"},{"photo_id":"1350195320","filename":"file1"},{"photo_id":"1350195314","filename":"file0"},{"photo_id":"1350195360","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350195363":["hashtag1","hashtag2"]},{"1350195366":["hashtag1","hashtag2"]},{"1350195360":["hashtag1","hashtag2"]},{"1350195320":["hashtag1","hashtag2"]},{"1350195314":["hashtag1","hashtag2"]},{"1350195355":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350195363, 1350195366, 1350195360, 1350195320, 1350195314, 1350195355)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 38.35472631454468 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 22:32:02.444268
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/22/31/image_06042025_22_31_44_9835.jpg', 2), ('/home/nano/Desktop/images/06042025/22/31/image_06042025_22_31_34_9836.jpg', 2), ('/home/nano/Desktop/images/06042025/22/31/image_06042025_22_31_24_9837.jpg', 2), ('/home/nano/Desktop/images/06042025/22/31/image_06042025_22_31_14_10876.jpg', 2), ('/home/nano/Desktop/images/06042025/22/30/image_06042025_22_31_03_9844.jpg', 2), ('/home/nano/Desktop/images/06042025/22/30/image_06042025_22_30_53_9835.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/22/31/image_06042025_22_31_44_9835.jpg', '/home/nano/Desktop/images/06042025/22/31/image_06042025_22_31_34_9836.jpg', '/home/nano/Desktop/images/06042025/22/31/image_06042025_22_31_24_9837.jpg', '/home/nano/Desktop/images/06042025/22/31/image_06042025_22_31_14_10876.jpg', '/home/nano/Desktop/images/06042025/22/30/image_06042025_22_31_03_9844.jpg', '/home/nano/Desktop/images/06042025/22/30/image_06042025_22_30_53_9835.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/22/31/image_06042025_22_31_44_9835.jpg
/home/nano/Desktop/images/06042025/22/31/image_06042025_22_31_34_9836.jpg
/home/nano/Desktop/images/06042025/22/31/image_06042025_22_31_24_9837.jpg
/home/nano/Desktop/images/06042025/22/31/image_06042025_22_31_14_10876.jpg
/home/nano/Desktop/images/06042025/22/30/image_06042025_22_31_03_9844.jpg
/home/nano/Desktop/images/06042025/22/30/image_06042025_22_30_53_9835.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350195438","1350195441","1350195429","1350195431","1350195434","1350195436"],"photo_ids_order":["1350195429","1350195431","1350195434","1350195436","1350195438","1350195441"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/45a09181682f704354afb61390f5b25b.jpg","text":"TemporaryFile(/tmp/multipartBody7582633868120969249asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971586486,"filename":"image_06042025_22_31_03_9844.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/6b7e24ad6c259d9c2b5ed9bd4b1363c7.jpg","text":"TemporaryFile(/tmp/multipartBody7535210831208835023asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971586486,"filename":"image_06042025_22_30_53_9835.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c7881e6d7a0a0cc7679b3ef42d621400.jpg","text":"TemporaryFile(/tmp/multipartBody5147000433835583759asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971586486,"filename":"image_06042025_22_31_44_9835.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/316ef7d95531863773da0e523ac80753.jpg","text":"TemporaryFile(/tmp/multipartBody7531222786079292146asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971586486,"filename":"image_06042025_22_31_34_9836.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/dc1bf1db59e067fd25b711128fbfd261.jpg","text":"TemporaryFile(/tmp/multipartBody4758839392687313316asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971586486,"filename":"image_06042025_22_31_24_9837.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/6488f8175dcd44cf4c32da6662b1251f.jpg","text":"TemporaryFile(/tmp/multipartBody5657329185943044111asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971586486,"filename":"image_06042025_22_31_14_10876.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350195434","file1":"1350195431","file0":"1350195429","file4":"1350195438","file5":"1350195441","file3":"1350195436"},"map_files_photo_id_array":[{"photo_id":"1350195441","filename":"file5"},{"photo_id":"1350195434","filename":"file2"},{"photo_id":"1350195438","filename":"file4"},{"photo_id":"1350195431","filename":"file1"},{"photo_id":"1350195429","filename":"file0"},{"photo_id":"1350195436","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350195438":["hashtag1","hashtag2"]},{"1350195441":["hashtag1","hashtag2"]},{"1350195429":["hashtag1","hashtag2"]},{"1350195431":["hashtag1","hashtag2"]},{"1350195434":["hashtag1","hashtag2"]},{"1350195436":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350195438, 1350195441, 1350195429, 1350195431, 1350195434, 1350195436)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.26346731185913 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 22:33:02.885226
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/22/32/image_06042025_22_32_44_9652.jpg', 2), ('/home/nano/Desktop/images/06042025/22/32/image_06042025_22_32_34_10664.jpg', 2), ('/home/nano/Desktop/images/06042025/22/32/image_06042025_22_32_23_9678.jpg', 2), ('/home/nano/Desktop/images/06042025/22/31/image_06042025_22_32_04_10678.jpg', 2), ('/home/nano/Desktop/images/06042025/22/31/image_06042025_22_31_53_9842.jpg', 2), ('/home/nano/Desktop/images/06042025/19/51/image_06042025_19_51_23_9644.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/22/32/image_06042025_22_32_44_9652.jpg', '/home/nano/Desktop/images/06042025/22/32/image_06042025_22_32_34_10664.jpg', '/home/nano/Desktop/images/06042025/22/32/image_06042025_22_32_23_9678.jpg', '/home/nano/Desktop/images/06042025/22/31/image_06042025_22_32_04_10678.jpg', '/home/nano/Desktop/images/06042025/22/31/image_06042025_22_31_53_9842.jpg', '/home/nano/Desktop/images/06042025/19/51/image_06042025_19_51_23_9644.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/22/32/image_06042025_22_32_44_9652.jpg
/home/nano/Desktop/images/06042025/22/32/image_06042025_22_32_34_10664.jpg
/home/nano/Desktop/images/06042025/22/32/image_06042025_22_32_23_9678.jpg
/home/nano/Desktop/images/06042025/22/31/image_06042025_22_32_04_10678.jpg
/home/nano/Desktop/images/06042025/22/31/image_06042025_22_31_53_9842.jpg
/home/nano/Desktop/images/06042025/19/51/image_06042025_19_51_23_9644.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350195477","1350195471","1350195473","1350195481","1350195493","1350195475"],"photo_ids_order":["1350195471","1350195473","1350195475","1350195477","1350195481","1350195493"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/971deb635f70d8063297f9512995d05b.jpg","text":"TemporaryFile(/tmp/multipartBody8475897220673591364asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971644267,"filename":"image_06042025_22_32_04_10678.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/51936ef858597124dba130a63e5a560c.jpg","text":"TemporaryFile(/tmp/multipartBody1640954263048846123asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971644267,"filename":"image_06042025_22_32_44_9652.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/3c3e9edac3aaa05f2955c6a09465759b.jpg","text":"TemporaryFile(/tmp/multipartBody7724632203028026474asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971644267,"filename":"image_06042025_22_32_34_10664.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/cd91033cbb8b6f3aa347aa7b384f7da3.jpg","text":"TemporaryFile(/tmp/multipartBody5265958312298212683asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971644267,"filename":"image_06042025_22_31_53_9842.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a2d943b22d95928ce53eeff608a50cff.jpg","text":"TemporaryFile(/tmp/multipartBody5851872591856734296asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971644267,"filename":"image_06042025_19_51_23_9644.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/8fb5b6b9611b8222d67005b3f6b7eeb4.jpg","text":"TemporaryFile(/tmp/multipartBody7254728447000850174asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971644267,"filename":"image_06042025_22_32_23_9678.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350195475","file1":"1350195473","file0":"1350195471","file4":"1350195481","file5":"1350195493","file3":"1350195477"},"map_files_photo_id_array":[{"photo_id":"1350195493","filename":"file5"},{"photo_id":"1350195475","filename":"file2"},{"photo_id":"1350195481","filename":"file4"},{"photo_id":"1350195473","filename":"file1"},{"photo_id":"1350195471","filename":"file0"},{"photo_id":"1350195477","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350195477":["hashtag1","hashtag2"]},{"1350195471":["hashtag1","hashtag2"]},{"1350195473":["hashtag1","hashtag2"]},{"1350195481":["hashtag1","hashtag2"]},{"1350195493":["hashtag1","hashtag2"]},{"1350195475":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350195477, 1350195471, 1350195473, 1350195481, 1350195493, 1350195475)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.371169567108154 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 22:34:03.179793
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/22/33/image_06042025_22_33_23_9668.jpg', 2), ('/home/nano/Desktop/images/06042025/22/33/image_06042025_22_33_14_9671.jpg', 2), ('/home/nano/Desktop/images/06042025/22/32/image_06042025_22_33_04_10660.jpg', 2), ('/home/nano/Desktop/images/06042025/22/32/image_06042025_22_32_53_9652.jpg', 2), ('/home/nano/Desktop/images/06042025/19/51/image_06042025_19_51_14_9658.jpg', 2), ('/home/nano/Desktop/images/06042025/19/50/image_06042025_19_51_04_10654.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/22/33/image_06042025_22_33_23_9668.jpg', '/home/nano/Desktop/images/06042025/22/33/image_06042025_22_33_14_9671.jpg', '/home/nano/Desktop/images/06042025/22/32/image_06042025_22_33_04_10660.jpg', '/home/nano/Desktop/images/06042025/22/32/image_06042025_22_32_53_9652.jpg', '/home/nano/Desktop/images/06042025/19/51/image_06042025_19_51_14_9658.jpg', '/home/nano/Desktop/images/06042025/19/50/image_06042025_19_51_04_10654.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/22/33/image_06042025_22_33_23_9668.jpg
/home/nano/Desktop/images/06042025/22/33/image_06042025_22_33_14_9671.jpg
/home/nano/Desktop/images/06042025/22/32/image_06042025_22_33_04_10660.jpg
/home/nano/Desktop/images/06042025/22/32/image_06042025_22_32_53_9652.jpg
/home/nano/Desktop/images/06042025/19/51/image_06042025_19_51_14_9658.jpg
/home/nano/Desktop/images/06042025/19/50/image_06042025_19_51_04_10654.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350195579","1350195575","1350195554","1350195551","1350195562","1350195556"],"photo_ids_order":["1350195551","1350195554","1350195556","1350195562","1350195575","1350195579"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/084e151ecc739bd06f49e417e831451b.jpg","text":"TemporaryFile(/tmp/multipartBody5267406847539875974asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971704997,"filename":"image_06042025_19_51_04_10654.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/30e575ce9f20917b7d95d1dff913f432.jpg","text":"TemporaryFile(/tmp/multipartBody8380506521276643966asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971704997,"filename":"image_06042025_19_51_14_9658.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/facb74e822ecc9430688eaea4e699c4f.jpg","text":"TemporaryFile(/tmp/multipartBody1347497670900152447asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971704997,"filename":"image_06042025_22_33_14_9671.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ad9d02206abf55c36b8f58f23ae48a3b.jpg","text":"TemporaryFile(/tmp/multipartBody5851559203988783495asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971704997,"filename":"image_06042025_22_33_23_9668.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/823ced99fac96c33050d84e241eb8175.jpg","text":"TemporaryFile(/tmp/multipartBody1659689625031830742asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971704997,"filename":"image_06042025_22_32_53_9652.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/9661821c0be4d0593f61a97e3331c92f.jpg","text":"TemporaryFile(/tmp/multipartBody8044801320881408249asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971704997,"filename":"image_06042025_22_33_04_10660.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350195556","file1":"1350195554","file0":"1350195551","file4":"1350195575","file5":"1350195579","file3":"1350195562"},"map_files_photo_id_array":[{"photo_id":"1350195579","filename":"file5"},{"photo_id":"1350195556","filename":"file2"},{"photo_id":"1350195575","filename":"file4"},{"photo_id":"1350195554","filename":"file1"},{"photo_id":"1350195551","filename":"file0"},{"photo_id":"1350195562","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350195579":["hashtag1","hashtag2"]},{"1350195575":["hashtag1","hashtag2"]},{"1350195554":["hashtag1","hashtag2"]},{"1350195551":["hashtag1","hashtag2"]},{"1350195562":["hashtag1","hashtag2"]},{"1350195556":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350195579, 1350195575, 1350195554, 1350195551, 1350195562, 1350195556)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 36.61237549781799 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 22:35:03.049353
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/22/34/image_06042025_22_34_44_9650.jpg', 2), ('/home/nano/Desktop/images/06042025/22/34/image_06042025_22_34_34_10677.jpg', 2), ('/home/nano/Desktop/images/06042025/22/34/image_06042025_22_34_23_9652.jpg', 2), ('/home/nano/Desktop/images/06042025/22/33/image_06042025_22_34_04_10688.jpg', 2), ('/home/nano/Desktop/images/06042025/22/33/image_06042025_22_33_44_9650.jpg', 2), ('/home/nano/Desktop/images/06042025/19/50/image_06042025_19_50_53_9642.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/22/34/image_06042025_22_34_44_9650.jpg', '/home/nano/Desktop/images/06042025/22/34/image_06042025_22_34_34_10677.jpg', '/home/nano/Desktop/images/06042025/22/34/image_06042025_22_34_23_9652.jpg', '/home/nano/Desktop/images/06042025/22/33/image_06042025_22_34_04_10688.jpg', '/home/nano/Desktop/images/06042025/22/33/image_06042025_22_33_44_9650.jpg', '/home/nano/Desktop/images/06042025/19/50/image_06042025_19_50_53_9642.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/22/34/image_06042025_22_34_44_9650.jpg
/home/nano/Desktop/images/06042025/22/34/image_06042025_22_34_34_10677.jpg
/home/nano/Desktop/images/06042025/22/34/image_06042025_22_34_23_9652.jpg
/home/nano/Desktop/images/06042025/22/33/image_06042025_22_34_04_10688.jpg
/home/nano/Desktop/images/06042025/22/33/image_06042025_22_33_44_9650.jpg
/home/nano/Desktop/images/06042025/19/50/image_06042025_19_50_53_9642.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350195774","1350195776","1350195791","1350195796","1350195781","1350195778"],"photo_ids_order":["1350195774","1350195776","1350195778","1350195781","1350195791","1350195796"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/568338093c16988f69f46bf586966fa5.jpg","text":"TemporaryFile(/tmp/multipartBody4514328861672966027asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971766407,"filename":"image_06042025_22_34_44_9650.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/8ac385b0cc7e3c60aa77fe910781379f.jpg","text":"TemporaryFile(/tmp/multipartBody4177647105054318445asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971766407,"filename":"image_06042025_22_34_34_10677.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/70734d445544166c070f1216bef36088.jpg","text":"TemporaryFile(/tmp/multipartBody6162179652128713379asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971766407,"filename":"image_06042025_22_33_44_9650.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/645dbbb99f353043da23e3f6b3d70dbe.jpg","text":"TemporaryFile(/tmp/multipartBody2029487633969368402asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971766407,"filename":"image_06042025_19_50_53_9642.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/59e3756fab3e8d12b3e0d065199448c4.jpg","text":"TemporaryFile(/tmp/multipartBody1432742054314530942asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971766407,"filename":"image_06042025_22_34_04_10688.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/af372a1509748cb9574b181b68dbbbca.jpg","text":"TemporaryFile(/tmp/multipartBody4734499067994220083asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971766407,"filename":"image_06042025_22_34_23_9652.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350195778","file1":"1350195776","file0":"1350195774","file4":"1350195791","file5":"1350195796","file3":"1350195781"},"map_files_photo_id_array":[{"photo_id":"1350195796","filename":"file5"},{"photo_id":"1350195778","filename":"file2"},{"photo_id":"1350195791","filename":"file4"},{"photo_id":"1350195776","filename":"file1"},{"photo_id":"1350195774","filename":"file0"},{"photo_id":"1350195781","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350195774":["hashtag1","hashtag2"]},{"1350195776":["hashtag1","hashtag2"]},{"1350195791":["hashtag1","hashtag2"]},{"1350195796":["hashtag1","hashtag2"]},{"1350195781":["hashtag1","hashtag2"]},{"1350195778":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350195774, 1350195776, 1350195791, 1350195796, 1350195781, 1350195778)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.37435603141785 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 22:36:03.086485
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/22/35/image_06042025_22_35_44_9790.jpg', 2), ('/home/nano/Desktop/images/06042025/22/35/image_06042025_22_35_34_10661.jpg', 2), ('/home/nano/Desktop/images/06042025/22/35/image_06042025_22_35_23_9653.jpg', 2), ('/home/nano/Desktop/images/06042025/22/35/image_06042025_22_35_14_9669.jpg', 2), ('/home/nano/Desktop/images/06042025/22/34/image_06042025_22_35_04_10686.jpg', 2), ('/home/nano/Desktop/images/06042025/22/34/image_06042025_22_34_53_9663.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/22/35/image_06042025_22_35_44_9790.jpg', '/home/nano/Desktop/images/06042025/22/35/image_06042025_22_35_34_10661.jpg', '/home/nano/Desktop/images/06042025/22/35/image_06042025_22_35_23_9653.jpg', '/home/nano/Desktop/images/06042025/22/35/image_06042025_22_35_14_9669.jpg', '/home/nano/Desktop/images/06042025/22/34/image_06042025_22_35_04_10686.jpg', '/home/nano/Desktop/images/06042025/22/34/image_06042025_22_34_53_9663.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/22/35/image_06042025_22_35_44_9790.jpg
/home/nano/Desktop/images/06042025/22/35/image_06042025_22_35_34_10661.jpg
/home/nano/Desktop/images/06042025/22/35/image_06042025_22_35_23_9653.jpg
/home/nano/Desktop/images/06042025/22/35/image_06042025_22_35_14_9669.jpg
/home/nano/Desktop/images/06042025/22/34/image_06042025_22_35_04_10686.jpg
/home/nano/Desktop/images/06042025/22/34/image_06042025_22_34_53_9663.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350195840","1350195834","1350195830","1350195836","1350195844","1350195823"],"photo_ids_order":["1350195823","1350195830","1350195834","1350195836","1350195840","1350195844"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/28c2cf6b67b2481fc13092282e41b210.jpg","text":"TemporaryFile(/tmp/multipartBody8659208783592122283asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971826204,"filename":"image_06042025_22_35_04_10686.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/93a10f8189ab2e6173f8556ce31f13d4.jpg","text":"TemporaryFile(/tmp/multipartBody6004033661726792681asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971826204,"filename":"image_06042025_22_35_23_9653.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4f408991b747cfa391db8c15f7b78e61.jpg","text":"TemporaryFile(/tmp/multipartBody6827217768716865596asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971826204,"filename":"image_06042025_22_35_34_10661.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c48fb97606cddf855775d0aff9aa23cb.jpg","text":"TemporaryFile(/tmp/multipartBody566459381315639141asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971826204,"filename":"image_06042025_22_35_14_9669.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/50fbf7d8fbb7f934ab5e3d3d1691ae30.jpg","text":"TemporaryFile(/tmp/multipartBody1551276002761531954asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971826204,"filename":"image_06042025_22_34_53_9663.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/7a896d3ddd6673d2c8d369a5ae2d10c5.jpg","text":"TemporaryFile(/tmp/multipartBody2814391054501350690asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971826204,"filename":"image_06042025_22_35_44_9790.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350195834","file1":"1350195830","file0":"1350195823","file4":"1350195840","file5":"1350195844","file3":"1350195836"},"map_files_photo_id_array":[{"photo_id":"1350195844","filename":"file5"},{"photo_id":"1350195834","filename":"file2"},{"photo_id":"1350195840","filename":"file4"},{"photo_id":"1350195830","filename":"file1"},{"photo_id":"1350195823","filename":"file0"},{"photo_id":"1350195836","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350195840":["hashtag1","hashtag2"]},{"1350195834":["hashtag1","hashtag2"]},{"1350195830":["hashtag1","hashtag2"]},{"1350195836":["hashtag1","hashtag2"]},{"1350195844":["hashtag1","hashtag2"]},{"1350195823":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350195840, 1350195834, 1350195830, 1350195836, 1350195844, 1350195823)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 38.78762769699097 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 22:37:03.377124
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/22/37/image_06042025_22_37_13_9667.jpg', 2), ('/home/nano/Desktop/images/06042025/22/36/image_06042025_22_36_43_9632.jpg', 2), ('/home/nano/Desktop/images/06042025/22/36/image_06042025_22_36_34_9632.jpg', 2), ('/home/nano/Desktop/images/06042025/22/36/image_06042025_22_36_13_9840.jpg', 2), ('/home/nano/Desktop/images/06042025/22/35/image_06042025_22_36_04_9824.jpg', 2), ('/home/nano/Desktop/images/06042025/22/35/image_06042025_22_35_54_9814.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/22/37/image_06042025_22_37_13_9667.jpg', '/home/nano/Desktop/images/06042025/22/36/image_06042025_22_36_43_9632.jpg', '/home/nano/Desktop/images/06042025/22/36/image_06042025_22_36_34_9632.jpg', '/home/nano/Desktop/images/06042025/22/36/image_06042025_22_36_13_9840.jpg', '/home/nano/Desktop/images/06042025/22/35/image_06042025_22_36_04_9824.jpg', '/home/nano/Desktop/images/06042025/22/35/image_06042025_22_35_54_9814.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/22/37/image_06042025_22_37_13_9667.jpg
/home/nano/Desktop/images/06042025/22/36/image_06042025_22_36_43_9632.jpg
/home/nano/Desktop/images/06042025/22/36/image_06042025_22_36_34_9632.jpg
/home/nano/Desktop/images/06042025/22/36/image_06042025_22_36_13_9840.jpg
/home/nano/Desktop/images/06042025/22/35/image_06042025_22_36_04_9824.jpg
/home/nano/Desktop/images/06042025/22/35/image_06042025_22_35_54_9814.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350195873","1350195876","1350195915","1350195872","1350195926","1350195879"],"photo_ids_order":["1350195872","1350195873","1350195876","1350195879","1350195915","1350195926"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/581aa7d9b5c72a1505372cf78080a449.jpg","text":"TemporaryFile(/tmp/multipartBody997183241477586879asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971885262,"filename":"image_06042025_22_36_43_9632.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/cf8ef402f58b5fc797766f24e1fa078d.jpg","text":"TemporaryFile(/tmp/multipartBody5715080972052453636asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971885262,"filename":"image_06042025_22_36_34_9632.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/033c46820a24e3e862674d66eeadc18a.jpg","text":"TemporaryFile(/tmp/multipartBody2634364594463847713asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971885262,"filename":"image_06042025_22_36_04_9824.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/9180ba0d6fda0496d8991f76d7837ab4.jpg","text":"TemporaryFile(/tmp/multipartBody9085927523723634726asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971885262,"filename":"image_06042025_22_37_13_9667.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a91a3d129312b1c7bb4ae21530dfb5eb.jpg","text":"TemporaryFile(/tmp/multipartBody3478425459060053791asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971885262,"filename":"image_06042025_22_35_54_9814.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/da19b811f00e5b1420f463d7f9c9cf56.jpg","text":"TemporaryFile(/tmp/multipartBody218659379326053434asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971885262,"filename":"image_06042025_22_36_13_9840.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350195876","file1":"1350195873","file0":"1350195872","file4":"1350195915","file5":"1350195926","file3":"1350195879"},"map_files_photo_id_array":[{"photo_id":"1350195926","filename":"file5"},{"photo_id":"1350195876","filename":"file2"},{"photo_id":"1350195915","filename":"file4"},{"photo_id":"1350195873","filename":"file1"},{"photo_id":"1350195872","filename":"file0"},{"photo_id":"1350195879","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350195873":["hashtag1","hashtag2"]},{"1350195876":["hashtag1","hashtag2"]},{"1350195915":["hashtag1","hashtag2"]},{"1350195872":["hashtag1","hashtag2"]},{"1350195926":["hashtag1","hashtag2"]},{"1350195879":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350195873, 1350195876, 1350195915, 1350195872, 1350195926, 1350195879)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.13988924026489 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 22:38:02.347661
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/22/37/image_06042025_22_37_44_9832.jpg', 2), ('/home/nano/Desktop/images/06042025/22/37/image_06042025_22_37_34_9795.jpg', 2), ('/home/nano/Desktop/images/06042025/22/37/image_06042025_22_37_24_10804.jpg', 2), ('/home/nano/Desktop/images/06042025/22/36/image_06042025_22_37_04_9668.jpg', 2), ('/home/nano/Desktop/images/06042025/22/36/image_06042025_22_36_54_10673.jpg', 2), ('/home/nano/Desktop/images/06042025/19/50/image_06042025_19_50_44_9641.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/22/37/image_06042025_22_37_44_9832.jpg', '/home/nano/Desktop/images/06042025/22/37/image_06042025_22_37_34_9795.jpg', '/home/nano/Desktop/images/06042025/22/37/image_06042025_22_37_24_10804.jpg', '/home/nano/Desktop/images/06042025/22/36/image_06042025_22_37_04_9668.jpg', '/home/nano/Desktop/images/06042025/22/36/image_06042025_22_36_54_10673.jpg', '/home/nano/Desktop/images/06042025/19/50/image_06042025_19_50_44_9641.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/22/37/image_06042025_22_37_44_9832.jpg
/home/nano/Desktop/images/06042025/22/37/image_06042025_22_37_34_9795.jpg
/home/nano/Desktop/images/06042025/22/37/image_06042025_22_37_24_10804.jpg
/home/nano/Desktop/images/06042025/22/36/image_06042025_22_37_04_9668.jpg
/home/nano/Desktop/images/06042025/22/36/image_06042025_22_36_54_10673.jpg
/home/nano/Desktop/images/06042025/19/50/image_06042025_19_50_44_9641.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350196040","1350196001","1350195997","1350196042","1350196003","1350195999"],"photo_ids_order":["1350195997","1350195999","1350196001","1350196003","1350196040","1350196042"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a961d73f9016423c677469912442b7e9.jpg","text":"TemporaryFile(/tmp/multipartBody448743942926002237asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971944086,"filename":"image_06042025_22_36_54_10673.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/d20b33761616f2e26d41b351a46ec182.jpg","text":"TemporaryFile(/tmp/multipartBody8478278470361404314asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971944086,"filename":"image_06042025_22_37_24_10804.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/030810316af99afe8efb3802ac27532d.jpg","text":"TemporaryFile(/tmp/multipartBody5206332289573390670asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971944086,"filename":"image_06042025_22_37_44_9832.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/048808f2af54aceaa99aa60a471077fe.jpg","text":"TemporaryFile(/tmp/multipartBody1600077416954949280asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971944086,"filename":"image_06042025_19_50_44_9641.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/556a45aaf560c7deb63a0a190e77608c.jpg","text":"TemporaryFile(/tmp/multipartBody6203444508777717377asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971944086,"filename":"image_06042025_22_37_04_9668.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/950b710d5ab44b9b331daa085b75d611.jpg","text":"TemporaryFile(/tmp/multipartBody1179637446970855844asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743971944086,"filename":"image_06042025_22_37_34_9795.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350196001","file1":"1350195999","file0":"1350195997","file4":"1350196040","file5":"1350196042","file3":"1350196003"},"map_files_photo_id_array":[{"photo_id":"1350196042","filename":"file5"},{"photo_id":"1350196001","filename":"file2"},{"photo_id":"1350196040","filename":"file4"},{"photo_id":"1350195999","filename":"file1"},{"photo_id":"1350195997","filename":"file0"},{"photo_id":"1350196003","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350196040":["hashtag1","hashtag2"]},{"1350196001":["hashtag1","hashtag2"]},{"1350195997":["hashtag1","hashtag2"]},{"1350196042":["hashtag1","hashtag2"]},{"1350196003":["hashtag1","hashtag2"]},{"1350195999":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350196040, 1350196001, 1350195997, 1350196042, 1350196003, 1350195999)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.950973987579346 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 22:39:02.850681
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/22/38/image_06042025_22_38_44_10765.jpg', 2), ('/home/nano/Desktop/images/06042025/22/38/image_06042025_22_38_33_9650.jpg', 2), ('/home/nano/Desktop/images/06042025/22/38/image_06042025_22_38_24_9647.jpg', 2), ('/home/nano/Desktop/images/06042025/22/38/image_06042025_22_38_14_10712.jpg', 2), ('/home/nano/Desktop/images/06042025/22/37/image_06042025_22_37_54_9805.jpg', 2), ('/home/nano/Desktop/images/06042025/19/50/image_06042025_19_50_14_9661.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/22/38/image_06042025_22_38_44_10765.jpg', '/home/nano/Desktop/images/06042025/22/38/image_06042025_22_38_33_9650.jpg', '/home/nano/Desktop/images/06042025/22/38/image_06042025_22_38_24_9647.jpg', '/home/nano/Desktop/images/06042025/22/38/image_06042025_22_38_14_10712.jpg', '/home/nano/Desktop/images/06042025/22/37/image_06042025_22_37_54_9805.jpg', '/home/nano/Desktop/images/06042025/19/50/image_06042025_19_50_14_9661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/22/38/image_06042025_22_38_44_10765.jpg
/home/nano/Desktop/images/06042025/22/38/image_06042025_22_38_33_9650.jpg
/home/nano/Desktop/images/06042025/22/38/image_06042025_22_38_24_9647.jpg
/home/nano/Desktop/images/06042025/22/38/image_06042025_22_38_14_10712.jpg
/home/nano/Desktop/images/06042025/22/37/image_06042025_22_37_54_9805.jpg
/home/nano/Desktop/images/06042025/19/50/image_06042025_19_50_14_9661.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350196073","1350196076","1350196061","1350196066","1350196069","1350196062"],"photo_ids_order":["1350196061","1350196062","1350196066","1350196069","1350196073","1350196076"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/66db618e8d145624db9e86ef6d193413.jpg","text":"TemporaryFile(/tmp/multipartBody6961979629782300151asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972004301,"filename":"image_06042025_22_37_54_9805.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/29671b52d1921169288af16a4b40451f.jpg","text":"TemporaryFile(/tmp/multipartBody4337056769801867510asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972004301,"filename":"image_06042025_19_50_14_9661.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/3746733272692244573336cd4771ab3c.jpg","text":"TemporaryFile(/tmp/multipartBody8453116720965506364asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972004301,"filename":"image_06042025_22_38_44_10765.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/25fe8ab559eb43d08b17aa24d956c913.jpg","text":"TemporaryFile(/tmp/multipartBody6118379443845406610asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972004301,"filename":"image_06042025_22_38_24_9647.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/9c0bb519b75c3b62ee0e4cdea28e95fc.jpg","text":"TemporaryFile(/tmp/multipartBody1133622490497522102asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972004301,"filename":"image_06042025_22_38_14_10712.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/1f3d90b3749dbe8a1f82814cf0025384.jpg","text":"TemporaryFile(/tmp/multipartBody8348517370835394218asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972004301,"filename":"image_06042025_22_38_33_9650.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350196066","file1":"1350196062","file0":"1350196061","file4":"1350196073","file5":"1350196076","file3":"1350196069"},"map_files_photo_id_array":[{"photo_id":"1350196076","filename":"file5"},{"photo_id":"1350196066","filename":"file2"},{"photo_id":"1350196073","filename":"file4"},{"photo_id":"1350196062","filename":"file1"},{"photo_id":"1350196061","filename":"file0"},{"photo_id":"1350196069","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350196073":["hashtag1","hashtag2"]},{"1350196076":["hashtag1","hashtag2"]},{"1350196061":["hashtag1","hashtag2"]},{"1350196066":["hashtag1","hashtag2"]},{"1350196069":["hashtag1","hashtag2"]},{"1350196062":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350196073, 1350196076, 1350196061, 1350196066, 1350196069, 1350196062)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 37.823424339294434 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 22:40:02.499153
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/22/39/image_06042025_22_39_43_9645.jpg', 2), ('/home/nano/Desktop/images/06042025/22/39/image_06042025_22_39_24_10762.jpg', 2), ('/home/nano/Desktop/images/06042025/22/39/image_06042025_22_39_13_9776.jpg', 2), ('/home/nano/Desktop/images/06042025/22/38/image_06042025_22_39_03_9757.jpg', 2), ('/home/nano/Desktop/images/06042025/22/38/image_06042025_22_38_54_9755.jpg', 2), ('/home/nano/Desktop/images/06042025/19/49/image_06042025_19_49_44_9643.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/22/39/image_06042025_22_39_43_9645.jpg', '/home/nano/Desktop/images/06042025/22/39/image_06042025_22_39_24_10762.jpg', '/home/nano/Desktop/images/06042025/22/39/image_06042025_22_39_13_9776.jpg', '/home/nano/Desktop/images/06042025/22/38/image_06042025_22_39_03_9757.jpg', '/home/nano/Desktop/images/06042025/22/38/image_06042025_22_38_54_9755.jpg', '/home/nano/Desktop/images/06042025/19/49/image_06042025_19_49_44_9643.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/22/39/image_06042025_22_39_43_9645.jpg
/home/nano/Desktop/images/06042025/22/39/image_06042025_22_39_24_10762.jpg
/home/nano/Desktop/images/06042025/22/39/image_06042025_22_39_13_9776.jpg
/home/nano/Desktop/images/06042025/22/38/image_06042025_22_39_03_9757.jpg
/home/nano/Desktop/images/06042025/22/38/image_06042025_22_38_54_9755.jpg
/home/nano/Desktop/images/06042025/19/49/image_06042025_19_49_44_9643.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350196091","1350196110","1350196097","1350196106","1350196100","1350196093"],"photo_ids_order":["1350196091","1350196093","1350196097","1350196100","1350196106","1350196110"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/05426ed3dfe2670b9f7f27780c47d8cf.jpg","text":"TemporaryFile(/tmp/multipartBody2895763671443496720asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972064469,"filename":"image_06042025_22_39_43_9645.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/85d7381fc66d9be9c7eab8dc04d833cc.jpg","text":"TemporaryFile(/tmp/multipartBody3195613803856051231asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972064469,"filename":"image_06042025_19_49_44_9643.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/18540268e1cef2a4fe93767a52d1b686.jpg","text":"TemporaryFile(/tmp/multipartBody7176823015479885541asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972064469,"filename":"image_06042025_22_39_13_9776.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/7e87f4e70ff68661beaf14579e298841.jpg","text":"TemporaryFile(/tmp/multipartBody2139440423321265663asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972064469,"filename":"image_06042025_22_38_54_9755.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/24703a967ac2a21736ebee457000304f.jpg","text":"TemporaryFile(/tmp/multipartBody2770979365369153066asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972064469,"filename":"image_06042025_22_39_03_9757.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a6d23ee399ee44bfc7235113b1b222a6.jpg","text":"TemporaryFile(/tmp/multipartBody3842241489885920672asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972064469,"filename":"image_06042025_22_39_24_10762.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350196097","file1":"1350196093","file0":"1350196091","file4":"1350196106","file5":"1350196110","file3":"1350196100"},"map_files_photo_id_array":[{"photo_id":"1350196110","filename":"file5"},{"photo_id":"1350196097","filename":"file2"},{"photo_id":"1350196106","filename":"file4"},{"photo_id":"1350196093","filename":"file1"},{"photo_id":"1350196091","filename":"file0"},{"photo_id":"1350196100","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350196091":["hashtag1","hashtag2"]},{"1350196110":["hashtag1","hashtag2"]},{"1350196097":["hashtag1","hashtag2"]},{"1350196106":["hashtag1","hashtag2"]},{"1350196100":["hashtag1","hashtag2"]},{"1350196093":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350196091, 1350196110, 1350196097, 1350196106, 1350196100, 1350196093)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.93626165390015 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 22:41:02.781833
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/22/40/image_06042025_22_40_43_9647.jpg', 2), ('/home/nano/Desktop/images/06042025/22/40/image_06042025_22_40_34_9643.jpg', 2), ('/home/nano/Desktop/images/06042025/22/40/image_06042025_22_40_24_10654.jpg', 2), ('/home/nano/Desktop/images/06042025/22/39/image_06042025_22_39_54_10655.jpg', 2), ('/home/nano/Desktop/images/06042025/19/49/image_06042025_19_49_34_10653.jpg', 2), ('/home/nano/Desktop/images/06042025/19/49/image_06042025_19_49_23_9647.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/22/40/image_06042025_22_40_43_9647.jpg', '/home/nano/Desktop/images/06042025/22/40/image_06042025_22_40_34_9643.jpg', '/home/nano/Desktop/images/06042025/22/40/image_06042025_22_40_24_10654.jpg', '/home/nano/Desktop/images/06042025/22/39/image_06042025_22_39_54_10655.jpg', '/home/nano/Desktop/images/06042025/19/49/image_06042025_19_49_34_10653.jpg', '/home/nano/Desktop/images/06042025/19/49/image_06042025_19_49_23_9647.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/22/40/image_06042025_22_40_43_9647.jpg
/home/nano/Desktop/images/06042025/22/40/image_06042025_22_40_34_9643.jpg
/home/nano/Desktop/images/06042025/22/40/image_06042025_22_40_24_10654.jpg
/home/nano/Desktop/images/06042025/22/39/image_06042025_22_39_54_10655.jpg
/home/nano/Desktop/images/06042025/19/49/image_06042025_19_49_34_10653.jpg
/home/nano/Desktop/images/06042025/19/49/image_06042025_19_49_23_9647.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350196137","1350196151","1350196130","1350196133","1350196127","1350196126"],"photo_ids_order":["1350196126","1350196127","1350196130","1350196133","1350196137","1350196151"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/8670262232b1520e14c770c21a9ead91.jpg","text":"TemporaryFile(/tmp/multipartBody951389110635263502asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972124495,"filename":"image_06042025_19_49_34_10653.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/1d009ba304ec458fc02c319b0da45dd4.jpg","text":"TemporaryFile(/tmp/multipartBody1084880060386752849asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972124495,"filename":"image_06042025_19_49_23_9647.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e93baa0cb68b6d4f8195611e5d85cdd1.jpg","text":"TemporaryFile(/tmp/multipartBody4299020521411452536asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972124495,"filename":"image_06042025_22_40_24_10654.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ad79c2d8d770be1900577069784c53ba.jpg","text":"TemporaryFile(/tmp/multipartBody6162219706098554094asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972124495,"filename":"image_06042025_22_39_54_10655.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/14d0a95283f0089401b8cc82011d1dca.jpg","text":"TemporaryFile(/tmp/multipartBody7314296760390030085asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972124495,"filename":"image_06042025_22_40_34_9643.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/0ee1e7240d43df32061e07ba3db83e58.jpg","text":"TemporaryFile(/tmp/multipartBody4518088692426681768asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972124495,"filename":"image_06042025_22_40_43_9647.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350196130","file1":"1350196127","file0":"1350196126","file4":"1350196137","file5":"1350196151","file3":"1350196133"},"map_files_photo_id_array":[{"photo_id":"1350196151","filename":"file5"},{"photo_id":"1350196130","filename":"file2"},{"photo_id":"1350196137","filename":"file4"},{"photo_id":"1350196127","filename":"file1"},{"photo_id":"1350196126","filename":"file0"},{"photo_id":"1350196133","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350196137":["hashtag1","hashtag2"]},{"1350196151":["hashtag1","hashtag2"]},{"1350196130":["hashtag1","hashtag2"]},{"1350196133":["hashtag1","hashtag2"]},{"1350196127":["hashtag1","hashtag2"]},{"1350196126":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350196137, 1350196151, 1350196130, 1350196133, 1350196127, 1350196126)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.59657907485962 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 22:42:02.778073
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/22/41/image_06042025_22_41_43_9811.jpg', 2), ('/home/nano/Desktop/images/06042025/22/41/image_06042025_22_41_34_9763.jpg', 2), ('/home/nano/Desktop/images/06042025/22/41/image_06042025_22_41_24_10666.jpg', 2), ('/home/nano/Desktop/images/06042025/22/41/image_06042025_22_41_13_9662.jpg', 2), ('/home/nano/Desktop/images/06042025/22/40/image_06042025_22_40_54_10652.jpg', 2), ('/home/nano/Desktop/images/06042025/19/49/image_06042025_19_49_14_9662.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/22/41/image_06042025_22_41_43_9811.jpg', '/home/nano/Desktop/images/06042025/22/41/image_06042025_22_41_34_9763.jpg', '/home/nano/Desktop/images/06042025/22/41/image_06042025_22_41_24_10666.jpg', '/home/nano/Desktop/images/06042025/22/41/image_06042025_22_41_13_9662.jpg', '/home/nano/Desktop/images/06042025/22/40/image_06042025_22_40_54_10652.jpg', '/home/nano/Desktop/images/06042025/19/49/image_06042025_19_49_14_9662.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/22/41/image_06042025_22_41_43_9811.jpg
/home/nano/Desktop/images/06042025/22/41/image_06042025_22_41_34_9763.jpg
/home/nano/Desktop/images/06042025/22/41/image_06042025_22_41_24_10666.jpg
/home/nano/Desktop/images/06042025/22/41/image_06042025_22_41_13_9662.jpg
/home/nano/Desktop/images/06042025/22/40/image_06042025_22_40_54_10652.jpg
/home/nano/Desktop/images/06042025/19/49/image_06042025_19_49_14_9662.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350196212","1350196199","1350196205","1350196195","1350196201","1350196197"],"photo_ids_order":["1350196195","1350196197","1350196199","1350196201","1350196205","1350196212"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b56bbfecf3d54548183733bd9f3c1117.jpg","text":"TemporaryFile(/tmp/multipartBody2073794612069576653asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972184337,"filename":"image_06042025_19_49_14_9662.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/92bb43744941dec2c5a023da4abffb65.jpg","text":"TemporaryFile(/tmp/multipartBody6714505187888302376asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972184337,"filename":"image_06042025_22_41_24_10666.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/430fc724abb5de70ecf74e96ee8239ed.jpg","text":"TemporaryFile(/tmp/multipartBody2660392834317765580asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972184337,"filename":"image_06042025_22_40_54_10652.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/baf8b05dc6f2d60aaaa9441a61db03ad.jpg","text":"TemporaryFile(/tmp/multipartBody1896103363198643183asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972184337,"filename":"image_06042025_22_41_43_9811.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/420e23b5edbd0895a303f5cef80db752.jpg","text":"TemporaryFile(/tmp/multipartBody7363701898841490511asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972184337,"filename":"image_06042025_22_41_13_9662.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c5914e33a26673de7897da7ace4231dc.jpg","text":"TemporaryFile(/tmp/multipartBody3801943079432698178asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972184337,"filename":"image_06042025_22_41_34_9763.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350196199","file1":"1350196197","file0":"1350196195","file4":"1350196205","file5":"1350196212","file3":"1350196201"},"map_files_photo_id_array":[{"photo_id":"1350196212","filename":"file5"},{"photo_id":"1350196199","filename":"file2"},{"photo_id":"1350196205","filename":"file4"},{"photo_id":"1350196197","filename":"file1"},{"photo_id":"1350196195","filename":"file0"},{"photo_id":"1350196201","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350196212":["hashtag1","hashtag2"]},{"1350196199":["hashtag1","hashtag2"]},{"1350196205":["hashtag1","hashtag2"]},{"1350196195":["hashtag1","hashtag2"]},{"1350196201":["hashtag1","hashtag2"]},{"1350196197":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350196212, 1350196199, 1350196205, 1350196195, 1350196201, 1350196197)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.344820499420166 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 22:43:02.961437
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/22/42/image_06042025_22_42_44_10765.jpg', 2), ('/home/nano/Desktop/images/06042025/22/42/image_06042025_22_42_33_9757.jpg', 2), ('/home/nano/Desktop/images/06042025/22/42/image_06042025_22_42_24_9757.jpg', 2), ('/home/nano/Desktop/images/06042025/22/42/image_06042025_22_42_14_9780.jpg', 2), ('/home/nano/Desktop/images/06042025/22/41/image_06042025_22_42_04_10829.jpg', 2), ('/home/nano/Desktop/images/06042025/22/41/image_06042025_22_41_53_9810.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/22/42/image_06042025_22_42_44_10765.jpg', '/home/nano/Desktop/images/06042025/22/42/image_06042025_22_42_33_9757.jpg', '/home/nano/Desktop/images/06042025/22/42/image_06042025_22_42_24_9757.jpg', '/home/nano/Desktop/images/06042025/22/42/image_06042025_22_42_14_9780.jpg', '/home/nano/Desktop/images/06042025/22/41/image_06042025_22_42_04_10829.jpg', '/home/nano/Desktop/images/06042025/22/41/image_06042025_22_41_53_9810.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/22/42/image_06042025_22_42_44_10765.jpg
/home/nano/Desktop/images/06042025/22/42/image_06042025_22_42_33_9757.jpg
/home/nano/Desktop/images/06042025/22/42/image_06042025_22_42_24_9757.jpg
/home/nano/Desktop/images/06042025/22/42/image_06042025_22_42_14_9780.jpg
/home/nano/Desktop/images/06042025/22/41/image_06042025_22_42_04_10829.jpg
/home/nano/Desktop/images/06042025/22/41/image_06042025_22_41_53_9810.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350196308","1350196302","1350196280","1350196294","1350196257","1350196266"],"photo_ids_order":["1350196257","1350196266","1350196280","1350196294","1350196302","1350196308"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/7049c5185ae36c56f6eb12d05b36def6.jpg","text":"TemporaryFile(/tmp/multipartBody5960969909873962210asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972245176,"filename":"image_06042025_22_41_53_9810.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/0d31cb14b7c576a6aa20488190182e32.jpg","text":"TemporaryFile(/tmp/multipartBody9117496601209239486asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972245176,"filename":"image_06042025_22_42_04_10829.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b7c3d8125b0ba10fe25c296459a29340.jpg","text":"TemporaryFile(/tmp/multipartBody9027447921287558383asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972245176,"filename":"image_06042025_22_42_24_9757.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e6175bf5e655c484a9e85ab6f0a7971e.jpg","text":"TemporaryFile(/tmp/multipartBody7499789306238609739asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972245176,"filename":"image_06042025_22_42_14_9780.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/9bfcebd3e89a16eeb86668078bb19e60.jpg","text":"TemporaryFile(/tmp/multipartBody3361683072315020995asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972245176,"filename":"image_06042025_22_42_44_10765.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/77ab6a1f7e98efc55ca732d9521db920.jpg","text":"TemporaryFile(/tmp/multipartBody1150879745040449438asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972245176,"filename":"image_06042025_22_42_33_9757.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350196280","file1":"1350196266","file0":"1350196257","file4":"1350196302","file5":"1350196308","file3":"1350196294"},"map_files_photo_id_array":[{"photo_id":"1350196308","filename":"file5"},{"photo_id":"1350196280","filename":"file2"},{"photo_id":"1350196302","filename":"file4"},{"photo_id":"1350196266","filename":"file1"},{"photo_id":"1350196257","filename":"file0"},{"photo_id":"1350196294","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350196308":["hashtag1","hashtag2"]},{"1350196302":["hashtag1","hashtag2"]},{"1350196280":["hashtag1","hashtag2"]},{"1350196294":["hashtag1","hashtag2"]},{"1350196257":["hashtag1","hashtag2"]},{"1350196266":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350196308, 1350196302, 1350196280, 1350196294, 1350196257, 1350196266)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 43.587095737457275 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 22:44:03.399956
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/22/43/image_06042025_22_43_44_9814.jpg', 2), ('/home/nano/Desktop/images/06042025/22/43/image_06042025_22_43_34_10824.jpg', 2), ('/home/nano/Desktop/images/06042025/22/43/image_06042025_22_43_23_9813.jpg', 2), ('/home/nano/Desktop/images/06042025/22/43/image_06042025_22_43_13_9835.jpg', 2), ('/home/nano/Desktop/images/06042025/22/42/image_06042025_22_43_04_9682.jpg', 2), ('/home/nano/Desktop/images/06042025/22/42/image_06042025_22_42_54_9753.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/22/43/image_06042025_22_43_44_9814.jpg', '/home/nano/Desktop/images/06042025/22/43/image_06042025_22_43_34_10824.jpg', '/home/nano/Desktop/images/06042025/22/43/image_06042025_22_43_23_9813.jpg', '/home/nano/Desktop/images/06042025/22/43/image_06042025_22_43_13_9835.jpg', '/home/nano/Desktop/images/06042025/22/42/image_06042025_22_43_04_9682.jpg', '/home/nano/Desktop/images/06042025/22/42/image_06042025_22_42_54_9753.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/22/43/image_06042025_22_43_44_9814.jpg
/home/nano/Desktop/images/06042025/22/43/image_06042025_22_43_34_10824.jpg
/home/nano/Desktop/images/06042025/22/43/image_06042025_22_43_23_9813.jpg
/home/nano/Desktop/images/06042025/22/43/image_06042025_22_43_13_9835.jpg
/home/nano/Desktop/images/06042025/22/42/image_06042025_22_43_04_9682.jpg
/home/nano/Desktop/images/06042025/22/42/image_06042025_22_42_54_9753.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350196353","1350196349","1350196351","1350196362","1350196356","1350196359"],"photo_ids_order":["1350196349","1350196351","1350196353","1350196356","1350196359","1350196362"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/3e7b6123c099f4382c530c5c64a57e5e.jpg","text":"TemporaryFile(/tmp/multipartBody2206207520452423264asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972305191,"filename":"image_06042025_22_43_23_9813.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e0cd4c1f0467c20dd4c10c5dbb4903e5.jpg","text":"TemporaryFile(/tmp/multipartBody4096700524629049217asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972305191,"filename":"image_06042025_22_43_44_9814.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/d1408d1c5e3d031847e13b42c44f490a.jpg","text":"TemporaryFile(/tmp/multipartBody2512283323942429217asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972305191,"filename":"image_06042025_22_43_34_10824.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/8bda0fe017d1fc33785f1ecc48debbc3.jpg","text":"TemporaryFile(/tmp/multipartBody5138404403695599126asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972305191,"filename":"image_06042025_22_42_54_9753.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/999d55b0912cc43af15413b779030a0e.jpg","text":"TemporaryFile(/tmp/multipartBody1311739803876561474asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972305191,"filename":"image_06042025_22_43_13_9835.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f221cc9f6bad30f6bc7ee735e9cb6745.jpg","text":"TemporaryFile(/tmp/multipartBody5304721214665162350asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972305191,"filename":"image_06042025_22_43_04_9682.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350196353","file1":"1350196351","file0":"1350196349","file4":"1350196359","file5":"1350196362","file3":"1350196356"},"map_files_photo_id_array":[{"photo_id":"1350196362","filename":"file5"},{"photo_id":"1350196353","filename":"file2"},{"photo_id":"1350196359","filename":"file4"},{"photo_id":"1350196351","filename":"file1"},{"photo_id":"1350196349","filename":"file0"},{"photo_id":"1350196356","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350196353":["hashtag1","hashtag2"]},{"1350196349":["hashtag1","hashtag2"]},{"1350196351":["hashtag1","hashtag2"]},{"1350196362":["hashtag1","hashtag2"]},{"1350196356":["hashtag1","hashtag2"]},{"1350196359":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350196353, 1350196349, 1350196351, 1350196362, 1350196356, 1350196359)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.65845274925232 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 22:45:03.148562
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/22/44/image_06042025_22_44_44_9841.jpg', 2), ('/home/nano/Desktop/images/06042025/22/44/image_06042025_22_44_34_10804.jpg', 2), ('/home/nano/Desktop/images/06042025/22/44/image_06042025_22_44_23_9786.jpg', 2), ('/home/nano/Desktop/images/06042025/22/44/image_06042025_22_44_13_9862.jpg', 2), ('/home/nano/Desktop/images/06042025/22/43/image_06042025_22_44_04_9838.jpg', 2), ('/home/nano/Desktop/images/06042025/22/43/image_06042025_22_43_54_9813.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/22/44/image_06042025_22_44_44_9841.jpg', '/home/nano/Desktop/images/06042025/22/44/image_06042025_22_44_34_10804.jpg', '/home/nano/Desktop/images/06042025/22/44/image_06042025_22_44_23_9786.jpg', '/home/nano/Desktop/images/06042025/22/44/image_06042025_22_44_13_9862.jpg', '/home/nano/Desktop/images/06042025/22/43/image_06042025_22_44_04_9838.jpg', '/home/nano/Desktop/images/06042025/22/43/image_06042025_22_43_54_9813.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/22/44/image_06042025_22_44_44_9841.jpg
/home/nano/Desktop/images/06042025/22/44/image_06042025_22_44_34_10804.jpg
/home/nano/Desktop/images/06042025/22/44/image_06042025_22_44_23_9786.jpg
/home/nano/Desktop/images/06042025/22/44/image_06042025_22_44_13_9862.jpg
/home/nano/Desktop/images/06042025/22/43/image_06042025_22_44_04_9838.jpg
/home/nano/Desktop/images/06042025/22/43/image_06042025_22_43_54_9813.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350196413","1350196409","1350196400","1350196406","1350196398","1350196402"],"photo_ids_order":["1350196398","1350196400","1350196402","1350196406","1350196409","1350196413"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/508eea23736169490a5cf063ea71be45.jpg","text":"TemporaryFile(/tmp/multipartBody7966732697878155399asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972365708,"filename":"image_06042025_22_43_54_9813.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e4a486249005d132aecc26b055367c07.jpg","text":"TemporaryFile(/tmp/multipartBody3307129595328908072asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972365708,"filename":"image_06042025_22_44_04_9838.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/78efee6a707950244f35fe284ce8e919.jpg","text":"TemporaryFile(/tmp/multipartBody8174643474577150575asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972365708,"filename":"image_06042025_22_44_34_10804.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/08101096e05703fedc09b5cc3759100f.jpg","text":"TemporaryFile(/tmp/multipartBody7262419787332916377asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972365708,"filename":"image_06042025_22_44_13_9862.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c8bfd656cf6b5559296784ab594e1c39.jpg","text":"TemporaryFile(/tmp/multipartBody1380224362149459140asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972365708,"filename":"image_06042025_22_44_44_9841.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/bd233a880cf2c00edce09346ac8d7f8e.jpg","text":"TemporaryFile(/tmp/multipartBody8345385783310835169asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972365708,"filename":"image_06042025_22_44_23_9786.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350196402","file1":"1350196400","file0":"1350196398","file4":"1350196409","file5":"1350196413","file3":"1350196406"},"map_files_photo_id_array":[{"photo_id":"1350196413","filename":"file5"},{"photo_id":"1350196402","filename":"file2"},{"photo_id":"1350196409","filename":"file4"},{"photo_id":"1350196400","filename":"file1"},{"photo_id":"1350196398","filename":"file0"},{"photo_id":"1350196406","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350196413":["hashtag1","hashtag2"]},{"1350196409":["hashtag1","hashtag2"]},{"1350196400":["hashtag1","hashtag2"]},{"1350196406":["hashtag1","hashtag2"]},{"1350196398":["hashtag1","hashtag2"]},{"1350196402":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350196413, 1350196409, 1350196400, 1350196406, 1350196398, 1350196402)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 39.017295360565186 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 22:46:03.072542
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/22/45/image_06042025_22_45_44_9836.jpg', 2), ('/home/nano/Desktop/images/06042025/22/45/image_06042025_22_45_34_9825.jpg', 2), ('/home/nano/Desktop/images/06042025/22/45/image_06042025_22_45_24_10831.jpg', 2), ('/home/nano/Desktop/images/06042025/22/45/image_06042025_22_45_13_9841.jpg', 2), ('/home/nano/Desktop/images/06042025/22/44/image_06042025_22_45_03_9821.jpg', 2), ('/home/nano/Desktop/images/06042025/22/44/image_06042025_22_44_54_9820.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/22/45/image_06042025_22_45_44_9836.jpg', '/home/nano/Desktop/images/06042025/22/45/image_06042025_22_45_34_9825.jpg', '/home/nano/Desktop/images/06042025/22/45/image_06042025_22_45_24_10831.jpg', '/home/nano/Desktop/images/06042025/22/45/image_06042025_22_45_13_9841.jpg', '/home/nano/Desktop/images/06042025/22/44/image_06042025_22_45_03_9821.jpg', '/home/nano/Desktop/images/06042025/22/44/image_06042025_22_44_54_9820.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/22/45/image_06042025_22_45_44_9836.jpg
/home/nano/Desktop/images/06042025/22/45/image_06042025_22_45_34_9825.jpg
/home/nano/Desktop/images/06042025/22/45/image_06042025_22_45_24_10831.jpg
/home/nano/Desktop/images/06042025/22/45/image_06042025_22_45_13_9841.jpg
/home/nano/Desktop/images/06042025/22/44/image_06042025_22_45_03_9821.jpg
/home/nano/Desktop/images/06042025/22/44/image_06042025_22_44_54_9820.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350196433","1350196442","1350196436","1350196439","1350196430","1350196432"],"photo_ids_order":["1350196430","1350196432","1350196433","1350196436","1350196439","1350196442"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/cb8f937bba887994ffc74ac43dda2731.jpg","text":"TemporaryFile(/tmp/multipartBody3239492202657185474asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972426154,"filename":"image_06042025_22_45_24_10831.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/341e5196c22e5656818a50d4c919dc35.jpg","text":"TemporaryFile(/tmp/multipartBody6263769656498653766asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972426154,"filename":"image_06042025_22_44_54_9820.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ec25455496cde966de520b8626858d8e.jpg","text":"TemporaryFile(/tmp/multipartBody6996880265630297191asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972426154,"filename":"image_06042025_22_45_13_9841.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/9006b994d7c6143117c5cf79a388392c.jpg","text":"TemporaryFile(/tmp/multipartBody8140649683765900396asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972426154,"filename":"image_06042025_22_45_03_9821.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/15596b27422636e2df00578bcb2fbba4.jpg","text":"TemporaryFile(/tmp/multipartBody3243851413709249603asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972426154,"filename":"image_06042025_22_45_44_9836.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c3ddbc0cc36848cc7e625ce666013211.jpg","text":"TemporaryFile(/tmp/multipartBody424811467478126004asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972426154,"filename":"image_06042025_22_45_34_9825.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350196433","file1":"1350196432","file0":"1350196430","file4":"1350196439","file5":"1350196442","file3":"1350196436"},"map_files_photo_id_array":[{"photo_id":"1350196442","filename":"file5"},{"photo_id":"1350196433","filename":"file2"},{"photo_id":"1350196439","filename":"file4"},{"photo_id":"1350196432","filename":"file1"},{"photo_id":"1350196430","filename":"file0"},{"photo_id":"1350196436","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350196433":["hashtag1","hashtag2"]},{"1350196442":["hashtag1","hashtag2"]},{"1350196436":["hashtag1","hashtag2"]},{"1350196439":["hashtag1","hashtag2"]},{"1350196430":["hashtag1","hashtag2"]},{"1350196432":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350196433, 1350196442, 1350196436, 1350196439, 1350196430, 1350196432)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.778252840042114 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 22:47:03.298251
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/22/46/image_06042025_22_46_44_9804.jpg', 2), ('/home/nano/Desktop/images/06042025/22/46/image_06042025_22_46_34_9808.jpg', 2), ('/home/nano/Desktop/images/06042025/22/46/image_06042025_22_46_24_10827.jpg', 2), ('/home/nano/Desktop/images/06042025/22/46/image_06042025_22_46_13_9835.jpg', 2), ('/home/nano/Desktop/images/06042025/22/45/image_06042025_22_46_03_9821.jpg', 2), ('/home/nano/Desktop/images/06042025/22/45/image_06042025_22_45_54_9837.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/22/46/image_06042025_22_46_44_9804.jpg', '/home/nano/Desktop/images/06042025/22/46/image_06042025_22_46_34_9808.jpg', '/home/nano/Desktop/images/06042025/22/46/image_06042025_22_46_24_10827.jpg', '/home/nano/Desktop/images/06042025/22/46/image_06042025_22_46_13_9835.jpg', '/home/nano/Desktop/images/06042025/22/45/image_06042025_22_46_03_9821.jpg', '/home/nano/Desktop/images/06042025/22/45/image_06042025_22_45_54_9837.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/22/46/image_06042025_22_46_44_9804.jpg
/home/nano/Desktop/images/06042025/22/46/image_06042025_22_46_34_9808.jpg
/home/nano/Desktop/images/06042025/22/46/image_06042025_22_46_24_10827.jpg
/home/nano/Desktop/images/06042025/22/46/image_06042025_22_46_13_9835.jpg
/home/nano/Desktop/images/06042025/22/45/image_06042025_22_46_03_9821.jpg
/home/nano/Desktop/images/06042025/22/45/image_06042025_22_45_54_9837.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350196469","1350196460","1350196462","1350196456","1350196471","1350196458"],"photo_ids_order":["1350196456","1350196458","1350196460","1350196462","1350196469","1350196471"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/8b92cce117ed798692020eae29f56cda.jpg","text":"TemporaryFile(/tmp/multipartBody7885766641884320981asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972485543,"filename":"image_06042025_22_46_03_9821.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/88d0d28a8c96cf7343652cf9d371a97e.jpg","text":"TemporaryFile(/tmp/multipartBody1164938678518375930asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972485543,"filename":"image_06042025_22_46_24_10827.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/851bc5e8680895fc9700f1acff55cb5a.jpg","text":"TemporaryFile(/tmp/multipartBody5624385871399045985asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972485543,"filename":"image_06042025_22_46_13_9835.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/1cb976b38e576d02b57a6d190c23b4ab.jpg","text":"TemporaryFile(/tmp/multipartBody6294640485106538363asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972485543,"filename":"image_06042025_22_46_44_9804.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e9d12fce90776aae8e3632f64f6340ab.jpg","text":"TemporaryFile(/tmp/multipartBody5988201660943776653asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972485543,"filename":"image_06042025_22_45_54_9837.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/99a312d0ce223717a940d0579b6e0c8a.jpg","text":"TemporaryFile(/tmp/multipartBody6878281725682447424asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972485543,"filename":"image_06042025_22_46_34_9808.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350196460","file1":"1350196458","file0":"1350196456","file4":"1350196469","file5":"1350196471","file3":"1350196462"},"map_files_photo_id_array":[{"photo_id":"1350196471","filename":"file5"},{"photo_id":"1350196460","filename":"file2"},{"photo_id":"1350196469","filename":"file4"},{"photo_id":"1350196458","filename":"file1"},{"photo_id":"1350196456","filename":"file0"},{"photo_id":"1350196462","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350196469":["hashtag1","hashtag2"]},{"1350196460":["hashtag1","hashtag2"]},{"1350196462":["hashtag1","hashtag2"]},{"1350196456":["hashtag1","hashtag2"]},{"1350196471":["hashtag1","hashtag2"]},{"1350196458":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350196469, 1350196460, 1350196462, 1350196456, 1350196471, 1350196458)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.2190842628479 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 22:48:02.339323
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/22/47/image_06042025_22_47_44_9803.jpg', 2), ('/home/nano/Desktop/images/06042025/22/47/image_06042025_22_47_34_9805.jpg', 2), ('/home/nano/Desktop/images/06042025/22/47/image_06042025_22_47_24_10816.jpg', 2), ('/home/nano/Desktop/images/06042025/22/47/image_06042025_22_47_13_9835.jpg', 2), ('/home/nano/Desktop/images/06042025/22/46/image_06042025_22_47_03_9807.jpg', 2), ('/home/nano/Desktop/images/06042025/22/46/image_06042025_22_46_54_9827.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/22/47/image_06042025_22_47_44_9803.jpg', '/home/nano/Desktop/images/06042025/22/47/image_06042025_22_47_34_9805.jpg', '/home/nano/Desktop/images/06042025/22/47/image_06042025_22_47_24_10816.jpg', '/home/nano/Desktop/images/06042025/22/47/image_06042025_22_47_13_9835.jpg', '/home/nano/Desktop/images/06042025/22/46/image_06042025_22_47_03_9807.jpg', '/home/nano/Desktop/images/06042025/22/46/image_06042025_22_46_54_9827.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/22/47/image_06042025_22_47_44_9803.jpg
/home/nano/Desktop/images/06042025/22/47/image_06042025_22_47_34_9805.jpg
/home/nano/Desktop/images/06042025/22/47/image_06042025_22_47_24_10816.jpg
/home/nano/Desktop/images/06042025/22/47/image_06042025_22_47_13_9835.jpg
/home/nano/Desktop/images/06042025/22/46/image_06042025_22_47_03_9807.jpg
/home/nano/Desktop/images/06042025/22/46/image_06042025_22_46_54_9827.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350196544","1350196523","1350196531","1350196542","1350196536","1350196521"],"photo_ids_order":["1350196521","1350196523","1350196531","1350196536","1350196542","1350196544"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/47b64d564e9bed1b2ec8a311ab97709b.jpg","text":"TemporaryFile(/tmp/multipartBody3773102608187455975asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972544423,"filename":"image_06042025_22_46_54_9827.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/68b9eefd58f43090ae51796dd0ed93e0.jpg","text":"TemporaryFile(/tmp/multipartBody1294328228552936805asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972544423,"filename":"image_06042025_22_47_34_9805.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/2c12309336c2cc8463f57cf4d819009f.jpg","text":"TemporaryFile(/tmp/multipartBody5826639602926086907asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972544423,"filename":"image_06042025_22_47_24_10816.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ffbf854dce9efd6e1e5799e022547890.jpg","text":"TemporaryFile(/tmp/multipartBody4616241240250649181asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972544423,"filename":"image_06042025_22_47_03_9807.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b3089246baae6131b9b46e5b687221b0.jpg","text":"TemporaryFile(/tmp/multipartBody9010241836051650806asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972544423,"filename":"image_06042025_22_47_13_9835.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/2e1e2e922202335b68919a229f77795b.jpg","text":"TemporaryFile(/tmp/multipartBody3113096895356224274asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972544423,"filename":"image_06042025_22_47_44_9803.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350196531","file1":"1350196523","file0":"1350196521","file4":"1350196542","file5":"1350196544","file3":"1350196536"},"map_files_photo_id_array":[{"photo_id":"1350196544","filename":"file5"},{"photo_id":"1350196531","filename":"file2"},{"photo_id":"1350196542","filename":"file4"},{"photo_id":"1350196523","filename":"file1"},{"photo_id":"1350196521","filename":"file0"},{"photo_id":"1350196536","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350196544":["hashtag1","hashtag2"]},{"1350196523":["hashtag1","hashtag2"]},{"1350196531":["hashtag1","hashtag2"]},{"1350196542":["hashtag1","hashtag2"]},{"1350196536":["hashtag1","hashtag2"]},{"1350196521":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350196544, 1350196523, 1350196531, 1350196542, 1350196536, 1350196521)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.76170873641968 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 22:49:02.901664
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/22/48/image_06042025_22_48_44_10643.jpg', 2), ('/home/nano/Desktop/images/06042025/22/48/image_06042025_22_48_33_9633.jpg', 2), ('/home/nano/Desktop/images/06042025/22/48/image_06042025_22_48_24_9633.jpg', 2), ('/home/nano/Desktop/images/06042025/22/48/image_06042025_22_48_14_9827.jpg', 2), ('/home/nano/Desktop/images/06042025/22/47/image_06042025_22_48_04_10757.jpg', 2), ('/home/nano/Desktop/images/06042025/22/47/image_06042025_22_47_53_9742.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/22/48/image_06042025_22_48_44_10643.jpg', '/home/nano/Desktop/images/06042025/22/48/image_06042025_22_48_33_9633.jpg', '/home/nano/Desktop/images/06042025/22/48/image_06042025_22_48_24_9633.jpg', '/home/nano/Desktop/images/06042025/22/48/image_06042025_22_48_14_9827.jpg', '/home/nano/Desktop/images/06042025/22/47/image_06042025_22_48_04_10757.jpg', '/home/nano/Desktop/images/06042025/22/47/image_06042025_22_47_53_9742.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/22/48/image_06042025_22_48_44_10643.jpg
/home/nano/Desktop/images/06042025/22/48/image_06042025_22_48_33_9633.jpg
/home/nano/Desktop/images/06042025/22/48/image_06042025_22_48_24_9633.jpg
/home/nano/Desktop/images/06042025/22/48/image_06042025_22_48_14_9827.jpg
/home/nano/Desktop/images/06042025/22/47/image_06042025_22_48_04_10757.jpg
/home/nano/Desktop/images/06042025/22/47/image_06042025_22_47_53_9742.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350196577","1350196573","1350196582","1350196579","1350196584","1350196581"],"photo_ids_order":["1350196573","1350196577","1350196579","1350196581","1350196582","1350196584"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f69ee19d3d320625c3bde3ddf2709426.jpg","text":"TemporaryFile(/tmp/multipartBody2042363011919986972asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972604556,"filename":"image_06042025_22_48_33_9633.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/79e364015b418a72da53753ab4d55218.jpg","text":"TemporaryFile(/tmp/multipartBody1965077731254529104asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972604556,"filename":"image_06042025_22_48_44_10643.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a99fa9456871e5076f60268613a11e0f.jpg","text":"TemporaryFile(/tmp/multipartBody5976183209212405384asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972604556,"filename":"image_06042025_22_48_04_10757.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a2a07ca13729dc0c063fb682587166fe.jpg","text":"TemporaryFile(/tmp/multipartBody2530618376331444157asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972604556,"filename":"image_06042025_22_48_24_9633.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/68a419869983b4d02f56a41f3ab9b692.jpg","text":"TemporaryFile(/tmp/multipartBody7560859317688625307asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972604556,"filename":"image_06042025_22_47_53_9742.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c8667a00e7a725224783d808f0190ac0.jpg","text":"TemporaryFile(/tmp/multipartBody7208848175005704475asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972604556,"filename":"image_06042025_22_48_14_9827.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350196579","file1":"1350196577","file0":"1350196573","file4":"1350196582","file5":"1350196584","file3":"1350196581"},"map_files_photo_id_array":[{"photo_id":"1350196584","filename":"file5"},{"photo_id":"1350196579","filename":"file2"},{"photo_id":"1350196582","filename":"file4"},{"photo_id":"1350196577","filename":"file1"},{"photo_id":"1350196573","filename":"file0"},{"photo_id":"1350196581","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350196577":["hashtag1","hashtag2"]},{"1350196573":["hashtag1","hashtag2"]},{"1350196582":["hashtag1","hashtag2"]},{"1350196579":["hashtag1","hashtag2"]},{"1350196584":["hashtag1","hashtag2"]},{"1350196581":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350196577, 1350196573, 1350196582, 1350196579, 1350196584, 1350196581)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.414687633514404 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 22:50:02.510637
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/22/49/image_06042025_22_49_34_10645.jpg', 2), ('/home/nano/Desktop/images/06042025/22/49/image_06042025_22_49_23_9633.jpg', 2), ('/home/nano/Desktop/images/06042025/22/49/image_06042025_22_49_14_10659.jpg', 2), ('/home/nano/Desktop/images/06042025/22/48/image_06042025_22_48_54_9635.jpg', 2), ('/home/nano/Desktop/images/06042025/19/48/image_06042025_19_49_04_10669.jpg', 2), ('/home/nano/Desktop/images/06042025/19/48/image_06042025_19_48_53_9650.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/22/49/image_06042025_22_49_34_10645.jpg', '/home/nano/Desktop/images/06042025/22/49/image_06042025_22_49_23_9633.jpg', '/home/nano/Desktop/images/06042025/22/49/image_06042025_22_49_14_10659.jpg', '/home/nano/Desktop/images/06042025/22/48/image_06042025_22_48_54_9635.jpg', '/home/nano/Desktop/images/06042025/19/48/image_06042025_19_49_04_10669.jpg', '/home/nano/Desktop/images/06042025/19/48/image_06042025_19_48_53_9650.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/22/49/image_06042025_22_49_34_10645.jpg
/home/nano/Desktop/images/06042025/22/49/image_06042025_22_49_23_9633.jpg
/home/nano/Desktop/images/06042025/22/49/image_06042025_22_49_14_10659.jpg
/home/nano/Desktop/images/06042025/22/48/image_06042025_22_48_54_9635.jpg
/home/nano/Desktop/images/06042025/19/48/image_06042025_19_49_04_10669.jpg
/home/nano/Desktop/images/06042025/19/48/image_06042025_19_48_53_9650.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350196638","1350196623","1350196661","1350196612","1350196653","1350196635"],"photo_ids_order":["1350196612","1350196623","1350196635","1350196638","1350196653","1350196661"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4e9097bd6a3bea961cde589f316e08e6.jpg","text":"TemporaryFile(/tmp/multipartBody4071923457784491126asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972664119,"filename":"image_06042025_22_48_54_9635.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/12ad3a710cb868e94d7a21dea029f28a.jpg","text":"TemporaryFile(/tmp/multipartBody6988265550930518070asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972664119,"filename":"image_06042025_22_49_23_9633.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ca1a13a69a61e474b083841ee62f74aa.jpg","text":"TemporaryFile(/tmp/multipartBody3771256764217624557asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972664119,"filename":"image_06042025_19_48_53_9650.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/1cfd5bc66218ec6452de844b461aad18.jpg","text":"TemporaryFile(/tmp/multipartBody3317040290474272578asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972664119,"filename":"image_06042025_22_49_34_10645.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ac051dec652ca503f688b7947c93d9ff.jpg","text":"TemporaryFile(/tmp/multipartBody6780714487052316604asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972664119,"filename":"image_06042025_19_49_04_10669.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/37781ee7ec76666a2f477f11d487be2e.jpg","text":"TemporaryFile(/tmp/multipartBody905956754627445008asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972664119,"filename":"image_06042025_22_49_14_10659.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350196635","file1":"1350196623","file0":"1350196612","file4":"1350196653","file5":"1350196661","file3":"1350196638"},"map_files_photo_id_array":[{"photo_id":"1350196661","filename":"file5"},{"photo_id":"1350196635","filename":"file2"},{"photo_id":"1350196653","filename":"file4"},{"photo_id":"1350196623","filename":"file1"},{"photo_id":"1350196612","filename":"file0"},{"photo_id":"1350196638","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350196638":["hashtag1","hashtag2"]},{"1350196623":["hashtag1","hashtag2"]},{"1350196661":["hashtag1","hashtag2"]},{"1350196612":["hashtag1","hashtag2"]},{"1350196653":["hashtag1","hashtag2"]},{"1350196635":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350196638, 1350196623, 1350196661, 1350196612, 1350196653, 1350196635)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.00601363182068 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 22:51:02.716596
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/22/50/image_06042025_22_50_44_10823.jpg', 2), ('/home/nano/Desktop/images/06042025/22/50/image_06042025_22_50_23_9817.jpg', 2), ('/home/nano/Desktop/images/06042025/22/50/image_06042025_22_50_14_9648.jpg', 2), ('/home/nano/Desktop/images/06042025/22/49/image_06042025_22_50_04_10656.jpg', 2), ('/home/nano/Desktop/images/06042025/22/49/image_06042025_22_49_53_9630.jpg', 2), ('/home/nano/Desktop/images/06042025/19/48/image_06042025_19_48_44_9663.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/22/50/image_06042025_22_50_44_10823.jpg', '/home/nano/Desktop/images/06042025/22/50/image_06042025_22_50_23_9817.jpg', '/home/nano/Desktop/images/06042025/22/50/image_06042025_22_50_14_9648.jpg', '/home/nano/Desktop/images/06042025/22/49/image_06042025_22_50_04_10656.jpg', '/home/nano/Desktop/images/06042025/22/49/image_06042025_22_49_53_9630.jpg', '/home/nano/Desktop/images/06042025/19/48/image_06042025_19_48_44_9663.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/22/50/image_06042025_22_50_44_10823.jpg
/home/nano/Desktop/images/06042025/22/50/image_06042025_22_50_23_9817.jpg
/home/nano/Desktop/images/06042025/22/50/image_06042025_22_50_14_9648.jpg
/home/nano/Desktop/images/06042025/22/49/image_06042025_22_50_04_10656.jpg
/home/nano/Desktop/images/06042025/22/49/image_06042025_22_49_53_9630.jpg
/home/nano/Desktop/images/06042025/19/48/image_06042025_19_48_44_9663.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350196685","1350196690","1350196693","1350196687","1350196681","1350196683"],"photo_ids_order":["1350196681","1350196683","1350196685","1350196687","1350196690","1350196693"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/bf42d41671f8289feb0763d53ec7cabe.jpg","text":"TemporaryFile(/tmp/multipartBody2924749676036436027asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972724774,"filename":"image_06042025_22_50_14_9648.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f62f72c334b3ca450093bed28320c414.jpg","text":"TemporaryFile(/tmp/multipartBody1710266535543558676asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972724774,"filename":"image_06042025_22_49_53_9630.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/853f55344144f1261743c89881a31018.jpg","text":"TemporaryFile(/tmp/multipartBody4978991000624497386asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972724774,"filename":"image_06042025_19_48_44_9663.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/027e5adb66b16c251906c50c63e842ec.jpg","text":"TemporaryFile(/tmp/multipartBody5796464904240416098asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972724774,"filename":"image_06042025_22_50_04_10656.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/da26455f5d4bf10b0d1513320a781063.jpg","text":"TemporaryFile(/tmp/multipartBody5285742455150983275asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972724774,"filename":"image_06042025_22_50_44_10823.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/94e971cb86aa46817ab887a2313476a9.jpg","text":"TemporaryFile(/tmp/multipartBody8492508599890897899asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972724774,"filename":"image_06042025_22_50_23_9817.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350196685","file1":"1350196683","file0":"1350196681","file4":"1350196690","file5":"1350196693","file3":"1350196687"},"map_files_photo_id_array":[{"photo_id":"1350196693","filename":"file5"},{"photo_id":"1350196685","filename":"file2"},{"photo_id":"1350196690","filename":"file4"},{"photo_id":"1350196683","filename":"file1"},{"photo_id":"1350196681","filename":"file0"},{"photo_id":"1350196687","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350196685":["hashtag1","hashtag2"]},{"1350196690":["hashtag1","hashtag2"]},{"1350196693":["hashtag1","hashtag2"]},{"1350196687":["hashtag1","hashtag2"]},{"1350196681":["hashtag1","hashtag2"]},{"1350196683":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350196685, 1350196690, 1350196693, 1350196687, 1350196681, 1350196683)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.370959758758545 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 22:52:02.726579
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/22/51/image_06042025_22_51_44_10832.jpg', 2), ('/home/nano/Desktop/images/06042025/22/51/image_06042025_22_51_33_9805.jpg', 2), ('/home/nano/Desktop/images/06042025/22/51/image_06042025_22_51_23_9798.jpg', 2), ('/home/nano/Desktop/images/06042025/22/51/image_06042025_22_51_14_9823.jpg', 2), ('/home/nano/Desktop/images/06042025/22/50/image_06042025_22_51_04_9813.jpg', 2), ('/home/nano/Desktop/images/06042025/22/50/image_06042025_22_50_54_9801.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/22/51/image_06042025_22_51_44_10832.jpg', '/home/nano/Desktop/images/06042025/22/51/image_06042025_22_51_33_9805.jpg', '/home/nano/Desktop/images/06042025/22/51/image_06042025_22_51_23_9798.jpg', '/home/nano/Desktop/images/06042025/22/51/image_06042025_22_51_14_9823.jpg', '/home/nano/Desktop/images/06042025/22/50/image_06042025_22_51_04_9813.jpg', '/home/nano/Desktop/images/06042025/22/50/image_06042025_22_50_54_9801.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/22/51/image_06042025_22_51_44_10832.jpg
/home/nano/Desktop/images/06042025/22/51/image_06042025_22_51_33_9805.jpg
/home/nano/Desktop/images/06042025/22/51/image_06042025_22_51_23_9798.jpg
/home/nano/Desktop/images/06042025/22/51/image_06042025_22_51_14_9823.jpg
/home/nano/Desktop/images/06042025/22/50/image_06042025_22_51_04_9813.jpg
/home/nano/Desktop/images/06042025/22/50/image_06042025_22_50_54_9801.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350196716","1350196751","1350196754","1350196744","1350196752","1350196749"],"photo_ids_order":["1350196716","1350196744","1350196749","1350196751","1350196752","1350196754"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/fbde5473aefcf0be4aca9ef9b970d20b.jpg","text":"TemporaryFile(/tmp/multipartBody7059681627214754348asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972785062,"filename":"image_06042025_22_51_44_10832.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4c400eb2d4864515f2fd90b6aad390c9.jpg","text":"TemporaryFile(/tmp/multipartBody3971340128329064723asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972785062,"filename":"image_06042025_22_51_14_9823.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/be29946407a510bdab98761d29ce3f62.jpg","text":"TemporaryFile(/tmp/multipartBody5185289292788605384asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972785062,"filename":"image_06042025_22_50_54_9801.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/6833ed6f7b982e74b7fdf7cb78060012.jpg","text":"TemporaryFile(/tmp/multipartBody2532913308237765650asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972785062,"filename":"image_06042025_22_51_33_9805.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/edd4638747d7472b38d5ed6efe29306e.jpg","text":"TemporaryFile(/tmp/multipartBody8536882047690961523asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972785062,"filename":"image_06042025_22_51_04_9813.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/094c4293d6edd0dbda803aa8c250b36b.jpg","text":"TemporaryFile(/tmp/multipartBody4510535220798841672asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972785062,"filename":"image_06042025_22_51_23_9798.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350196749","file1":"1350196744","file0":"1350196716","file4":"1350196752","file5":"1350196754","file3":"1350196751"},"map_files_photo_id_array":[{"photo_id":"1350196754","filename":"file5"},{"photo_id":"1350196749","filename":"file2"},{"photo_id":"1350196752","filename":"file4"},{"photo_id":"1350196744","filename":"file1"},{"photo_id":"1350196716","filename":"file0"},{"photo_id":"1350196751","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350196716":["hashtag1","hashtag2"]},{"1350196751":["hashtag1","hashtag2"]},{"1350196754":["hashtag1","hashtag2"]},{"1350196744":["hashtag1","hashtag2"]},{"1350196752":["hashtag1","hashtag2"]},{"1350196749":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350196716, 1350196751, 1350196754, 1350196744, 1350196752, 1350196749)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.02058029174805 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 22:53:02.995119
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/22/52/image_06042025_22_52_44_9774.jpg', 2), ('/home/nano/Desktop/images/06042025/22/52/image_06042025_22_52_34_10803.jpg', 2), ('/home/nano/Desktop/images/06042025/22/52/image_06042025_22_52_23_9794.jpg', 2), ('/home/nano/Desktop/images/06042025/22/52/image_06042025_22_52_13_9836.jpg', 2), ('/home/nano/Desktop/images/06042025/22/51/image_06042025_22_52_04_9780.jpg', 2), ('/home/nano/Desktop/images/06042025/22/51/image_06042025_22_51_54_9834.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/22/52/image_06042025_22_52_44_9774.jpg', '/home/nano/Desktop/images/06042025/22/52/image_06042025_22_52_34_10803.jpg', '/home/nano/Desktop/images/06042025/22/52/image_06042025_22_52_23_9794.jpg', '/home/nano/Desktop/images/06042025/22/52/image_06042025_22_52_13_9836.jpg', '/home/nano/Desktop/images/06042025/22/51/image_06042025_22_52_04_9780.jpg', '/home/nano/Desktop/images/06042025/22/51/image_06042025_22_51_54_9834.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/22/52/image_06042025_22_52_44_9774.jpg
/home/nano/Desktop/images/06042025/22/52/image_06042025_22_52_34_10803.jpg
/home/nano/Desktop/images/06042025/22/52/image_06042025_22_52_23_9794.jpg
/home/nano/Desktop/images/06042025/22/52/image_06042025_22_52_13_9836.jpg
/home/nano/Desktop/images/06042025/22/51/image_06042025_22_52_04_9780.jpg
/home/nano/Desktop/images/06042025/22/51/image_06042025_22_51_54_9834.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350196877","1350196922","1350196916","1350196879","1350196873","1350196872"],"photo_ids_order":["1350196872","1350196873","1350196877","1350196879","1350196916","1350196922"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e85af6afdd8785aa8b6f4f74cab7f54e.jpg","text":"TemporaryFile(/tmp/multipartBody891715053290764001asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972844952,"filename":"image_06042025_22_52_23_9794.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/74ad30b850a6e2a610c1c6126fa1d4b1.jpg","text":"TemporaryFile(/tmp/multipartBody6744969267859330023asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972844952,"filename":"image_06042025_22_51_54_9834.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/0e921f3c5a7514e2d827fa82fb930f7d.jpg","text":"TemporaryFile(/tmp/multipartBody8171285230063618115asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972844952,"filename":"image_06042025_22_52_04_9780.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/7b1ae8536bd609a043b922c36cd8d78b.jpg","text":"TemporaryFile(/tmp/multipartBody1210818715960130614asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972844952,"filename":"image_06042025_22_52_13_9836.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/d1323e9924d40a1fa1e1258f492e28f3.jpg","text":"TemporaryFile(/tmp/multipartBody697056650666802288asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972844952,"filename":"image_06042025_22_52_34_10803.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a986f6d96da33f4863a9a13af1e2e0db.jpg","text":"TemporaryFile(/tmp/multipartBody5960626884781924819asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972844952,"filename":"image_06042025_22_52_44_9774.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350196877","file1":"1350196873","file0":"1350196872","file4":"1350196916","file5":"1350196922","file3":"1350196879"},"map_files_photo_id_array":[{"photo_id":"1350196922","filename":"file5"},{"photo_id":"1350196877","filename":"file2"},{"photo_id":"1350196916","filename":"file4"},{"photo_id":"1350196873","filename":"file1"},{"photo_id":"1350196872","filename":"file0"},{"photo_id":"1350196879","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350196877":["hashtag1","hashtag2"]},{"1350196922":["hashtag1","hashtag2"]},{"1350196916":["hashtag1","hashtag2"]},{"1350196879":["hashtag1","hashtag2"]},{"1350196873":["hashtag1","hashtag2"]},{"1350196872":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350196877, 1350196922, 1350196916, 1350196879, 1350196873, 1350196872)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.56965231895447 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 22:54:03.366961
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/22/53/image_06042025_22_53_44_9815.jpg', 2), ('/home/nano/Desktop/images/06042025/22/53/image_06042025_22_53_34_9791.jpg', 2), ('/home/nano/Desktop/images/06042025/22/53/image_06042025_22_53_24_10795.jpg', 2), ('/home/nano/Desktop/images/06042025/22/53/image_06042025_22_53_13_9797.jpg', 2), ('/home/nano/Desktop/images/06042025/22/52/image_06042025_22_53_03_9782.jpg', 2), ('/home/nano/Desktop/images/06042025/22/52/image_06042025_22_52_54_9774.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/22/53/image_06042025_22_53_44_9815.jpg', '/home/nano/Desktop/images/06042025/22/53/image_06042025_22_53_34_9791.jpg', '/home/nano/Desktop/images/06042025/22/53/image_06042025_22_53_24_10795.jpg', '/home/nano/Desktop/images/06042025/22/53/image_06042025_22_53_13_9797.jpg', '/home/nano/Desktop/images/06042025/22/52/image_06042025_22_53_03_9782.jpg', '/home/nano/Desktop/images/06042025/22/52/image_06042025_22_52_54_9774.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/22/53/image_06042025_22_53_44_9815.jpg
/home/nano/Desktop/images/06042025/22/53/image_06042025_22_53_34_9791.jpg
/home/nano/Desktop/images/06042025/22/53/image_06042025_22_53_24_10795.jpg
/home/nano/Desktop/images/06042025/22/53/image_06042025_22_53_13_9797.jpg
/home/nano/Desktop/images/06042025/22/52/image_06042025_22_53_03_9782.jpg
/home/nano/Desktop/images/06042025/22/52/image_06042025_22_52_54_9774.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350197093","1350197147","1350197141","1350197144","1350197095","1350197149"],"photo_ids_order":["1350197093","1350197095","1350197141","1350197144","1350197147","1350197149"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/7fa0ce35f0e0cc7691ba8f828e2849c9.jpg","text":"TemporaryFile(/tmp/multipartBody301543002035594589asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972905431,"filename":"image_06042025_22_53_44_9815.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/1e20d98c7d74bb88a402f663160efa99.jpg","text":"TemporaryFile(/tmp/multipartBody6693791445651311917asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972905431,"filename":"image_06042025_22_53_03_9782.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/13049057ba4b1c3e2992de4aeb091dd8.jpg","text":"TemporaryFile(/tmp/multipartBody5457983098938448750asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972905431,"filename":"image_06042025_22_53_24_10795.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/15bee60d9782bac3383a5b82c8751a52.jpg","text":"TemporaryFile(/tmp/multipartBody3931858239941305961asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972905431,"filename":"image_06042025_22_53_13_9797.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/9aae792b2cf101d27da46fff296f6c41.jpg","text":"TemporaryFile(/tmp/multipartBody4932947436906209907asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972905431,"filename":"image_06042025_22_53_34_9791.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/da8e8dd1d25234b5cc09acaed3bc8c33.jpg","text":"TemporaryFile(/tmp/multipartBody5327597987244062323asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972905431,"filename":"image_06042025_22_52_54_9774.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350197141","file1":"1350197095","file0":"1350197093","file4":"1350197147","file5":"1350197149","file3":"1350197144"},"map_files_photo_id_array":[{"photo_id":"1350197149","filename":"file5"},{"photo_id":"1350197141","filename":"file2"},{"photo_id":"1350197147","filename":"file4"},{"photo_id":"1350197095","filename":"file1"},{"photo_id":"1350197093","filename":"file0"},{"photo_id":"1350197144","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350197093":["hashtag1","hashtag2"]},{"1350197147":["hashtag1","hashtag2"]},{"1350197141":["hashtag1","hashtag2"]},{"1350197144":["hashtag1","hashtag2"]},{"1350197095":["hashtag1","hashtag2"]},{"1350197149":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350197093, 1350197147, 1350197141, 1350197144, 1350197095, 1350197149)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.49976420402527 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 22:55:03.179743
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/22/54/image_06042025_22_54_43_9815.jpg', 2), ('/home/nano/Desktop/images/06042025/22/54/image_06042025_22_54_34_9795.jpg', 2), ('/home/nano/Desktop/images/06042025/22/54/image_06042025_22_54_24_9791.jpg', 2), ('/home/nano/Desktop/images/06042025/22/54/image_06042025_22_54_14_10840.jpg', 2), ('/home/nano/Desktop/images/06042025/22/53/image_06042025_22_54_03_9805.jpg', 2), ('/home/nano/Desktop/images/06042025/22/53/image_06042025_22_53_53_9812.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/22/54/image_06042025_22_54_43_9815.jpg', '/home/nano/Desktop/images/06042025/22/54/image_06042025_22_54_34_9795.jpg', '/home/nano/Desktop/images/06042025/22/54/image_06042025_22_54_24_9791.jpg', '/home/nano/Desktop/images/06042025/22/54/image_06042025_22_54_14_10840.jpg', '/home/nano/Desktop/images/06042025/22/53/image_06042025_22_54_03_9805.jpg', '/home/nano/Desktop/images/06042025/22/53/image_06042025_22_53_53_9812.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/22/54/image_06042025_22_54_43_9815.jpg
/home/nano/Desktop/images/06042025/22/54/image_06042025_22_54_34_9795.jpg
/home/nano/Desktop/images/06042025/22/54/image_06042025_22_54_24_9791.jpg
/home/nano/Desktop/images/06042025/22/54/image_06042025_22_54_14_10840.jpg
/home/nano/Desktop/images/06042025/22/53/image_06042025_22_54_03_9805.jpg
/home/nano/Desktop/images/06042025/22/53/image_06042025_22_53_53_9812.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350197171","1350197173","1350197166","1350197175","1350197169","1350197178"],"photo_ids_order":["1350197166","1350197169","1350197171","1350197173","1350197175","1350197178"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/52f653a94a441cc2f5e8aea563c52f04.jpg","text":"TemporaryFile(/tmp/multipartBody3401873535545933144asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972965478,"filename":"image_06042025_22_54_24_9791.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f95328b1e290126ce44af0fccc40f946.jpg","text":"TemporaryFile(/tmp/multipartBody1197759580070035848asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972965478,"filename":"image_06042025_22_54_14_10840.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ace6715a6863baf646d252e7741147a7.jpg","text":"TemporaryFile(/tmp/multipartBody3762545350409681665asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972965478,"filename":"image_06042025_22_54_43_9815.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/879f8f699a11e12d42c86888acb49b65.jpg","text":"TemporaryFile(/tmp/multipartBody49818711179686929asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972965478,"filename":"image_06042025_22_54_03_9805.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/12e4f402ebecd61cae38493bc8042dff.jpg","text":"TemporaryFile(/tmp/multipartBody6248630997913843502asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972965478,"filename":"image_06042025_22_54_34_9795.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/042972c72fc4ea89814683478113d3da.jpg","text":"TemporaryFile(/tmp/multipartBody7633239237020899592asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743972965478,"filename":"image_06042025_22_53_53_9812.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350197171","file1":"1350197169","file0":"1350197166","file4":"1350197175","file5":"1350197178","file3":"1350197173"},"map_files_photo_id_array":[{"photo_id":"1350197178","filename":"file5"},{"photo_id":"1350197171","filename":"file2"},{"photo_id":"1350197175","filename":"file4"},{"photo_id":"1350197169","filename":"file1"},{"photo_id":"1350197166","filename":"file0"},{"photo_id":"1350197173","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350197171":["hashtag1","hashtag2"]},{"1350197173":["hashtag1","hashtag2"]},{"1350197166":["hashtag1","hashtag2"]},{"1350197175":["hashtag1","hashtag2"]},{"1350197169":["hashtag1","hashtag2"]},{"1350197178":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350197171, 1350197173, 1350197166, 1350197175, 1350197169, 1350197178)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.19420313835144 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 22:56:03.200019
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/22/55/image_06042025_22_55_43_9795.jpg', 2), ('/home/nano/Desktop/images/06042025/22/55/image_06042025_22_55_33_9795.jpg', 2), ('/home/nano/Desktop/images/06042025/22/55/image_06042025_22_55_24_9817.jpg', 2), ('/home/nano/Desktop/images/06042025/22/55/image_06042025_22_55_14_9813.jpg', 2), ('/home/nano/Desktop/images/06042025/22/54/image_06042025_22_55_04_10814.jpg', 2), ('/home/nano/Desktop/images/06042025/22/54/image_06042025_22_54_53_9814.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/22/55/image_06042025_22_55_43_9795.jpg', '/home/nano/Desktop/images/06042025/22/55/image_06042025_22_55_33_9795.jpg', '/home/nano/Desktop/images/06042025/22/55/image_06042025_22_55_24_9817.jpg', '/home/nano/Desktop/images/06042025/22/55/image_06042025_22_55_14_9813.jpg', '/home/nano/Desktop/images/06042025/22/54/image_06042025_22_55_04_10814.jpg', '/home/nano/Desktop/images/06042025/22/54/image_06042025_22_54_53_9814.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/22/55/image_06042025_22_55_43_9795.jpg
/home/nano/Desktop/images/06042025/22/55/image_06042025_22_55_33_9795.jpg
/home/nano/Desktop/images/06042025/22/55/image_06042025_22_55_24_9817.jpg
/home/nano/Desktop/images/06042025/22/55/image_06042025_22_55_14_9813.jpg
/home/nano/Desktop/images/06042025/22/54/image_06042025_22_55_04_10814.jpg
/home/nano/Desktop/images/06042025/22/54/image_06042025_22_54_53_9814.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350197264","1350197258","1350197261","1350197254","1350197221","1350197218"],"photo_ids_order":["1350197218","1350197221","1350197254","1350197258","1350197261","1350197264"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/1fb55b7542563af8340c026a0d54acbf.jpg","text":"TemporaryFile(/tmp/multipartBody1710237757983216401asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973025288,"filename":"image_06042025_22_54_53_9814.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/6091aef7d61d06c87db001859b163c41.jpg","text":"TemporaryFile(/tmp/multipartBody6706992829955009376asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973025288,"filename":"image_06042025_22_55_14_9813.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/289135f59b5e95b2f2adb4c770e4ebbd.jpg","text":"TemporaryFile(/tmp/multipartBody1212035942333342266asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973025288,"filename":"image_06042025_22_55_04_10814.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/1c187a3bd4b20efa853622f9c2f2e363.jpg","text":"TemporaryFile(/tmp/multipartBody4497155967697001681asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973025288,"filename":"image_06042025_22_55_24_9817.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/2866c4e5f992ee4eba820d79943fbaca.jpg","text":"TemporaryFile(/tmp/multipartBody2399520780195857138asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973025288,"filename":"image_06042025_22_55_33_9795.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/6d20eb91feccc386482aec46dcd28ac7.jpg","text":"TemporaryFile(/tmp/multipartBody1455191966651331374asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973025288,"filename":"image_06042025_22_55_43_9795.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350197254","file1":"1350197221","file0":"1350197218","file4":"1350197261","file5":"1350197264","file3":"1350197258"},"map_files_photo_id_array":[{"photo_id":"1350197264","filename":"file5"},{"photo_id":"1350197254","filename":"file2"},{"photo_id":"1350197261","filename":"file4"},{"photo_id":"1350197221","filename":"file1"},{"photo_id":"1350197218","filename":"file0"},{"photo_id":"1350197258","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350197264":["hashtag1","hashtag2"]},{"1350197258":["hashtag1","hashtag2"]},{"1350197261":["hashtag1","hashtag2"]},{"1350197254":["hashtag1","hashtag2"]},{"1350197221":["hashtag1","hashtag2"]},{"1350197218":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350197264, 1350197258, 1350197261, 1350197254, 1350197221, 1350197218)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.55654811859131 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 22:57:02.192174
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/22/56/image_06042025_22_56_44_10804.jpg', 2), ('/home/nano/Desktop/images/06042025/22/56/image_06042025_22_56_33_9796.jpg', 2), ('/home/nano/Desktop/images/06042025/22/56/image_06042025_22_56_24_9835.jpg', 2), ('/home/nano/Desktop/images/06042025/22/56/image_06042025_22_56_14_9821.jpg', 2), ('/home/nano/Desktop/images/06042025/22/55/image_06042025_22_56_04_9807.jpg', 2), ('/home/nano/Desktop/images/06042025/22/55/image_06042025_22_55_54_10803.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/22/56/image_06042025_22_56_44_10804.jpg', '/home/nano/Desktop/images/06042025/22/56/image_06042025_22_56_33_9796.jpg', '/home/nano/Desktop/images/06042025/22/56/image_06042025_22_56_24_9835.jpg', '/home/nano/Desktop/images/06042025/22/56/image_06042025_22_56_14_9821.jpg', '/home/nano/Desktop/images/06042025/22/55/image_06042025_22_56_04_9807.jpg', '/home/nano/Desktop/images/06042025/22/55/image_06042025_22_55_54_10803.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/22/56/image_06042025_22_56_44_10804.jpg
/home/nano/Desktop/images/06042025/22/56/image_06042025_22_56_33_9796.jpg
/home/nano/Desktop/images/06042025/22/56/image_06042025_22_56_24_9835.jpg
/home/nano/Desktop/images/06042025/22/56/image_06042025_22_56_14_9821.jpg
/home/nano/Desktop/images/06042025/22/55/image_06042025_22_56_04_9807.jpg
/home/nano/Desktop/images/06042025/22/55/image_06042025_22_55_54_10803.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350197363","1350197357","1350197353","1350197359","1350197361","1350197355"],"photo_ids_order":["1350197353","1350197355","1350197357","1350197359","1350197361","1350197363"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b2a8add51b1ab1724580a096eb1ae4ae.jpg","text":"TemporaryFile(/tmp/multipartBody8706585186446862697asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973084341,"filename":"image_06042025_22_55_54_10803.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e823b329fafa5c1237ff4f0a7112c91e.jpg","text":"TemporaryFile(/tmp/multipartBody2958772313382902553asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973084341,"filename":"image_06042025_22_56_24_9835.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b4bbb564f355b83062a8bc75d64cfad4.jpg","text":"TemporaryFile(/tmp/multipartBody5791902633599830446asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973084341,"filename":"image_06042025_22_56_44_10804.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/37399b7f806f97a4413364d306ca52c4.jpg","text":"TemporaryFile(/tmp/multipartBody2693582665981456995asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973084341,"filename":"image_06042025_22_56_14_9821.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/969815a06bf98cf9f2091c3ba2520e75.jpg","text":"TemporaryFile(/tmp/multipartBody8233987049376335366asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973084341,"filename":"image_06042025_22_56_04_9807.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/7d6fa9db1337294554b6052358aea590.jpg","text":"TemporaryFile(/tmp/multipartBody6198124642249791904asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973084341,"filename":"image_06042025_22_56_33_9796.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350197357","file1":"1350197355","file0":"1350197353","file4":"1350197361","file5":"1350197363","file3":"1350197359"},"map_files_photo_id_array":[{"photo_id":"1350197363","filename":"file5"},{"photo_id":"1350197357","filename":"file2"},{"photo_id":"1350197361","filename":"file4"},{"photo_id":"1350197355","filename":"file1"},{"photo_id":"1350197353","filename":"file0"},{"photo_id":"1350197359","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350197363":["hashtag1","hashtag2"]},{"1350197357":["hashtag1","hashtag2"]},{"1350197353":["hashtag1","hashtag2"]},{"1350197359":["hashtag1","hashtag2"]},{"1350197361":["hashtag1","hashtag2"]},{"1350197355":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350197363, 1350197357, 1350197353, 1350197359, 1350197361, 1350197355)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.80984330177307 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 22:59:02.858128
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/22/57/image_06042025_22_57_44_10800.jpg', 2), ('/home/nano/Desktop/images/06042025/22/57/image_06042025_22_57_33_9792.jpg', 2), ('/home/nano/Desktop/images/06042025/22/57/image_06042025_22_57_23_9796.jpg', 2), ('/home/nano/Desktop/images/06042025/22/57/image_06042025_22_57_14_9819.jpg', 2), ('/home/nano/Desktop/images/06042025/22/56/image_06042025_22_57_04_9809.jpg', 2), ('/home/nano/Desktop/images/06042025/22/56/image_06042025_22_56_54_9795.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/22/57/image_06042025_22_57_44_10800.jpg', '/home/nano/Desktop/images/06042025/22/57/image_06042025_22_57_33_9792.jpg', '/home/nano/Desktop/images/06042025/22/57/image_06042025_22_57_23_9796.jpg', '/home/nano/Desktop/images/06042025/22/57/image_06042025_22_57_14_9819.jpg', '/home/nano/Desktop/images/06042025/22/56/image_06042025_22_57_04_9809.jpg', '/home/nano/Desktop/images/06042025/22/56/image_06042025_22_56_54_9795.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/22/57/image_06042025_22_57_44_10800.jpg
/home/nano/Desktop/images/06042025/22/57/image_06042025_22_57_33_9792.jpg
/home/nano/Desktop/images/06042025/22/57/image_06042025_22_57_23_9796.jpg
/home/nano/Desktop/images/06042025/22/57/image_06042025_22_57_14_9819.jpg
/home/nano/Desktop/images/06042025/22/56/image_06042025_22_57_04_9809.jpg
/home/nano/Desktop/images/06042025/22/56/image_06042025_22_56_54_9795.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350197510","1350197534","1350197504","1350197521","1350197529","1350197517"],"photo_ids_order":["1350197504","1350197510","1350197517","1350197521","1350197529","1350197534"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c34fa6d2bb744b83f0c9b4581018b6f0.jpg","text":"TemporaryFile(/tmp/multipartBody2852075419113522286asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973206433,"filename":"image_06042025_22_57_33_9792.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/518b9dcbbbf1dc33700cac0e4614324f.jpg","text":"TemporaryFile(/tmp/multipartBody7325330336316866359asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973206433,"filename":"image_06042025_22_56_54_9795.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/65d10903605343c3fef1359cdc901843.jpg","text":"TemporaryFile(/tmp/multipartBody2481476718030373389asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973206433,"filename":"image_06042025_22_57_44_10800.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/74413834c5704cbaf5d8ae93bca67ac8.jpg","text":"TemporaryFile(/tmp/multipartBody2814880151514894194asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973206433,"filename":"image_06042025_22_57_14_9819.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e7c50a3bc972a1c91e8764686ebc8ff7.jpg","text":"TemporaryFile(/tmp/multipartBody8559722711840250274asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973206433,"filename":"image_06042025_22_57_04_9809.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/2e639d35a68617e483a2d373c63876a9.jpg","text":"TemporaryFile(/tmp/multipartBody6834978337163129108asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973206433,"filename":"image_06042025_22_57_23_9796.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350197517","file1":"1350197510","file0":"1350197504","file4":"1350197529","file5":"1350197534","file3":"1350197521"},"map_files_photo_id_array":[{"photo_id":"1350197534","filename":"file5"},{"photo_id":"1350197517","filename":"file2"},{"photo_id":"1350197529","filename":"file4"},{"photo_id":"1350197510","filename":"file1"},{"photo_id":"1350197504","filename":"file0"},{"photo_id":"1350197521","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350197510":["hashtag1","hashtag2"]},{"1350197534":["hashtag1","hashtag2"]},{"1350197504":["hashtag1","hashtag2"]},{"1350197521":["hashtag1","hashtag2"]},{"1350197529":["hashtag1","hashtag2"]},{"1350197517":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350197510, 1350197534, 1350197504, 1350197521, 1350197529, 1350197517)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 36.37989640235901 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 23:00:02.657166
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/22/59/image_06042025_22_59_44_9795.jpg', 2), ('/home/nano/Desktop/images/06042025/22/59/image_06042025_22_59_34_9795.jpg', 2), ('/home/nano/Desktop/images/06042025/22/59/image_06042025_22_59_24_10805.jpg', 2), ('/home/nano/Desktop/images/06042025/22/59/image_06042025_22_59_13_9802.jpg', 2), ('/home/nano/Desktop/images/06042025/22/58/image_06042025_22_59_03_9799.jpg', 2), ('/home/nano/Desktop/images/06042025/22/58/image_06042025_22_58_54_9794.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/22/59/image_06042025_22_59_44_9795.jpg', '/home/nano/Desktop/images/06042025/22/59/image_06042025_22_59_34_9795.jpg', '/home/nano/Desktop/images/06042025/22/59/image_06042025_22_59_24_10805.jpg', '/home/nano/Desktop/images/06042025/22/59/image_06042025_22_59_13_9802.jpg', '/home/nano/Desktop/images/06042025/22/58/image_06042025_22_59_03_9799.jpg', '/home/nano/Desktop/images/06042025/22/58/image_06042025_22_58_54_9794.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/22/59/image_06042025_22_59_44_9795.jpg
/home/nano/Desktop/images/06042025/22/59/image_06042025_22_59_34_9795.jpg
/home/nano/Desktop/images/06042025/22/59/image_06042025_22_59_24_10805.jpg
/home/nano/Desktop/images/06042025/22/59/image_06042025_22_59_13_9802.jpg
/home/nano/Desktop/images/06042025/22/58/image_06042025_22_59_03_9799.jpg
/home/nano/Desktop/images/06042025/22/58/image_06042025_22_58_54_9794.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350197606","1350197600","1350197589","1350197586","1350197591","1350197594"],"photo_ids_order":["1350197586","1350197589","1350197591","1350197594","1350197600","1350197606"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/822478fe74d2dc26c7e79e87cb9ee132.jpg","text":"TemporaryFile(/tmp/multipartBody1331543344055521578asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973264764,"filename":"image_06042025_22_58_54_9794.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/495af478798eb426c56d955e7306823c.jpg","text":"TemporaryFile(/tmp/multipartBody3384039282498606424asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973264764,"filename":"image_06042025_22_59_03_9799.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b4f16cd14145e02f8ff072a4be51a214.jpg","text":"TemporaryFile(/tmp/multipartBody8680241994897025161asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973264764,"filename":"image_06042025_22_59_34_9795.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/740af72cf61f0e883f89d610ecd742fb.jpg","text":"TemporaryFile(/tmp/multipartBody1359962741725828407asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973264764,"filename":"image_06042025_22_59_44_9795.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/3108e629687ddc7451c706d5bc79f403.jpg","text":"TemporaryFile(/tmp/multipartBody3404255194674507322asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973264764,"filename":"image_06042025_22_59_24_10805.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/569254d654f50547dfc8db21cfdcfb5f.jpg","text":"TemporaryFile(/tmp/multipartBody1984825151968710140asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973264764,"filename":"image_06042025_22_59_13_9802.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350197591","file1":"1350197589","file0":"1350197586","file4":"1350197600","file5":"1350197606","file3":"1350197594"},"map_files_photo_id_array":[{"photo_id":"1350197606","filename":"file5"},{"photo_id":"1350197591","filename":"file2"},{"photo_id":"1350197600","filename":"file4"},{"photo_id":"1350197589","filename":"file1"},{"photo_id":"1350197586","filename":"file0"},{"photo_id":"1350197594","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350197606":["hashtag1","hashtag2"]},{"1350197600":["hashtag1","hashtag2"]},{"1350197589":["hashtag1","hashtag2"]},{"1350197586":["hashtag1","hashtag2"]},{"1350197591":["hashtag1","hashtag2"]},{"1350197594":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350197606, 1350197600, 1350197589, 1350197586, 1350197591, 1350197594)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.17187428474426 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 23:01:02.820197
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/23/00/image_06042025_23_00_43_9810.jpg', 2), ('/home/nano/Desktop/images/06042025/23/00/image_06042025_23_00_34_9812.jpg', 2), ('/home/nano/Desktop/images/06042025/23/00/image_06042025_23_00_24_9819.jpg', 2), ('/home/nano/Desktop/images/06042025/23/00/image_06042025_23_00_14_10826.jpg', 2), ('/home/nano/Desktop/images/06042025/22/59/image_06042025_23_00_03_9801.jpg', 2), ('/home/nano/Desktop/images/06042025/22/59/image_06042025_22_59_53_9792.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/23/00/image_06042025_23_00_43_9810.jpg', '/home/nano/Desktop/images/06042025/23/00/image_06042025_23_00_34_9812.jpg', '/home/nano/Desktop/images/06042025/23/00/image_06042025_23_00_24_9819.jpg', '/home/nano/Desktop/images/06042025/23/00/image_06042025_23_00_14_10826.jpg', '/home/nano/Desktop/images/06042025/22/59/image_06042025_23_00_03_9801.jpg', '/home/nano/Desktop/images/06042025/22/59/image_06042025_22_59_53_9792.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/23/00/image_06042025_23_00_43_9810.jpg
/home/nano/Desktop/images/06042025/23/00/image_06042025_23_00_34_9812.jpg
/home/nano/Desktop/images/06042025/23/00/image_06042025_23_00_24_9819.jpg
/home/nano/Desktop/images/06042025/23/00/image_06042025_23_00_14_10826.jpg
/home/nano/Desktop/images/06042025/22/59/image_06042025_23_00_03_9801.jpg
/home/nano/Desktop/images/06042025/22/59/image_06042025_22_59_53_9792.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350197648","1350197659","1350197650","1350197653","1350197644","1350197655"],"photo_ids_order":["1350197644","1350197648","1350197650","1350197653","1350197655","1350197659"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/26267a480cb4b6d0dcb827b5075e8a72.jpg","text":"TemporaryFile(/tmp/multipartBody4594711217227902889asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973324601,"filename":"image_06042025_23_00_34_9812.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/abf8bd8c3689b40bf0d3d65416d97bea.jpg","text":"TemporaryFile(/tmp/multipartBody7253635654219139353asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973324601,"filename":"image_06042025_22_59_53_9792.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a5a0a66da87726690ec614031839dfec.jpg","text":"TemporaryFile(/tmp/multipartBody1330165296845236628asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973324601,"filename":"image_06042025_23_00_24_9819.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/edfbc02778b7446c5af6e833828114e4.jpg","text":"TemporaryFile(/tmp/multipartBody3722150685810258843asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973324601,"filename":"image_06042025_23_00_14_10826.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/71b46b4163249bd1bd42c48c6f486b0c.jpg","text":"TemporaryFile(/tmp/multipartBody2195353164613994613asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973324601,"filename":"image_06042025_23_00_43_9810.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f9d263fa5a0c024bc5cf43af85d3fa68.jpg","text":"TemporaryFile(/tmp/multipartBody1061504760892052701asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973324601,"filename":"image_06042025_23_00_03_9801.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350197650","file1":"1350197648","file0":"1350197644","file4":"1350197655","file5":"1350197659","file3":"1350197653"},"map_files_photo_id_array":[{"photo_id":"1350197659","filename":"file5"},{"photo_id":"1350197650","filename":"file2"},{"photo_id":"1350197655","filename":"file4"},{"photo_id":"1350197648","filename":"file1"},{"photo_id":"1350197644","filename":"file0"},{"photo_id":"1350197653","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350197648":["hashtag1","hashtag2"]},{"1350197659":["hashtag1","hashtag2"]},{"1350197650":["hashtag1","hashtag2"]},{"1350197653":["hashtag1","hashtag2"]},{"1350197644":["hashtag1","hashtag2"]},{"1350197655":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350197648, 1350197659, 1350197650, 1350197653, 1350197644, 1350197655)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.69255256652832 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 23:02:02.734525
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/23/01/image_06042025_23_01_43_9811.jpg', 2), ('/home/nano/Desktop/images/06042025/23/01/image_06042025_23_01_34_9792.jpg', 2), ('/home/nano/Desktop/images/06042025/23/01/image_06042025_23_01_24_9809.jpg', 2), ('/home/nano/Desktop/images/06042025/23/01/image_06042025_23_01_14_9869.jpg', 2), ('/home/nano/Desktop/images/06042025/23/00/image_06042025_23_01_04_10835.jpg', 2), ('/home/nano/Desktop/images/06042025/23/00/image_06042025_23_00_53_9813.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/23/01/image_06042025_23_01_43_9811.jpg', '/home/nano/Desktop/images/06042025/23/01/image_06042025_23_01_34_9792.jpg', '/home/nano/Desktop/images/06042025/23/01/image_06042025_23_01_24_9809.jpg', '/home/nano/Desktop/images/06042025/23/01/image_06042025_23_01_14_9869.jpg', '/home/nano/Desktop/images/06042025/23/00/image_06042025_23_01_04_10835.jpg', '/home/nano/Desktop/images/06042025/23/00/image_06042025_23_00_53_9813.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/23/01/image_06042025_23_01_43_9811.jpg
/home/nano/Desktop/images/06042025/23/01/image_06042025_23_01_34_9792.jpg
/home/nano/Desktop/images/06042025/23/01/image_06042025_23_01_24_9809.jpg
/home/nano/Desktop/images/06042025/23/01/image_06042025_23_01_14_9869.jpg
/home/nano/Desktop/images/06042025/23/00/image_06042025_23_01_04_10835.jpg
/home/nano/Desktop/images/06042025/23/00/image_06042025_23_00_53_9813.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350197729","1350197750","1350197732","1350197734","1350197757","1350197745"],"photo_ids_order":["1350197729","1350197732","1350197734","1350197745","1350197750","1350197757"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e9c8ca3fb3254b053237a32d6e2a9408.jpg","text":"TemporaryFile(/tmp/multipartBody5874019988381770015asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973385349,"filename":"image_06042025_23_01_43_9811.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b86427516ac9297662f280286eb2c056.jpg","text":"TemporaryFile(/tmp/multipartBody3319652744206824048asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973385349,"filename":"image_06042025_23_01_04_10835.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/fae18d7e3d187c8d6372ffa9e530f53b.jpg","text":"TemporaryFile(/tmp/multipartBody5747710735077192035asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973385349,"filename":"image_06042025_23_01_34_9792.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c379c4272c2ea918ffb538a72e4400ac.jpg","text":"TemporaryFile(/tmp/multipartBody8505635769337340897asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973385349,"filename":"image_06042025_23_01_24_9809.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/8fc39e5734b17ff4fb9b64197bb2d5fc.jpg","text":"TemporaryFile(/tmp/multipartBody1179255676808118884asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973385349,"filename":"image_06042025_23_00_53_9813.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/5b7dcc41d20152f6630061b12bc7cb97.jpg","text":"TemporaryFile(/tmp/multipartBody9184333033164011563asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973385349,"filename":"image_06042025_23_01_14_9869.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350197734","file1":"1350197732","file0":"1350197729","file4":"1350197750","file5":"1350197757","file3":"1350197745"},"map_files_photo_id_array":[{"photo_id":"1350197757","filename":"file5"},{"photo_id":"1350197734","filename":"file2"},{"photo_id":"1350197750","filename":"file4"},{"photo_id":"1350197732","filename":"file1"},{"photo_id":"1350197729","filename":"file0"},{"photo_id":"1350197745","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350197729":["hashtag1","hashtag2"]},{"1350197750":["hashtag1","hashtag2"]},{"1350197732":["hashtag1","hashtag2"]},{"1350197734":["hashtag1","hashtag2"]},{"1350197757":["hashtag1","hashtag2"]},{"1350197745":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350197729, 1350197750, 1350197732, 1350197734, 1350197757, 1350197745)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.708969593048096 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 23:03:02.936574
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/23/02/image_06042025_23_02_43_9835.jpg', 2), ('/home/nano/Desktop/images/06042025/23/02/image_06042025_23_02_33_9796.jpg', 2), ('/home/nano/Desktop/images/06042025/23/02/image_06042025_23_02_24_9815.jpg', 2), ('/home/nano/Desktop/images/06042025/23/02/image_06042025_23_02_14_9814.jpg', 2), ('/home/nano/Desktop/images/06042025/23/01/image_06042025_23_02_04_10825.jpg', 2), ('/home/nano/Desktop/images/06042025/23/01/image_06042025_23_01_53_9788.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/23/02/image_06042025_23_02_43_9835.jpg', '/home/nano/Desktop/images/06042025/23/02/image_06042025_23_02_33_9796.jpg', '/home/nano/Desktop/images/06042025/23/02/image_06042025_23_02_24_9815.jpg', '/home/nano/Desktop/images/06042025/23/02/image_06042025_23_02_14_9814.jpg', '/home/nano/Desktop/images/06042025/23/01/image_06042025_23_02_04_10825.jpg', '/home/nano/Desktop/images/06042025/23/01/image_06042025_23_01_53_9788.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/23/02/image_06042025_23_02_43_9835.jpg
/home/nano/Desktop/images/06042025/23/02/image_06042025_23_02_33_9796.jpg
/home/nano/Desktop/images/06042025/23/02/image_06042025_23_02_24_9815.jpg
/home/nano/Desktop/images/06042025/23/02/image_06042025_23_02_14_9814.jpg
/home/nano/Desktop/images/06042025/23/01/image_06042025_23_02_04_10825.jpg
/home/nano/Desktop/images/06042025/23/01/image_06042025_23_01_53_9788.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350197795","1350197801","1350197797","1350197799","1350197793","1350197805"],"photo_ids_order":["1350197793","1350197795","1350197797","1350197799","1350197801","1350197805"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b666b8c09c7dd46cd5ce7c4f3b4d0807.jpg","text":"TemporaryFile(/tmp/multipartBody3110015701698349459asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973445085,"filename":"image_06042025_23_02_33_9796.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/879b95e8c717f239616c42ee711651fc.jpg","text":"TemporaryFile(/tmp/multipartBody954747014164800741asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973445085,"filename":"image_06042025_23_02_04_10825.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/bf768545ae09f6db10af82cff9f25fee.jpg","text":"TemporaryFile(/tmp/multipartBody924175855340316395asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973445085,"filename":"image_06042025_23_02_24_9815.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/67d0d4e13ed3c9c764d70b069a94f3bd.jpg","text":"TemporaryFile(/tmp/multipartBody5044667791937147735asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973445085,"filename":"image_06042025_23_02_14_9814.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/696accbaa9bc8939329a8bbebdeae53b.jpg","text":"TemporaryFile(/tmp/multipartBody6544408758679201257asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973445085,"filename":"image_06042025_23_02_43_9835.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c1314e942bef2677ef203b5fbfef909d.jpg","text":"TemporaryFile(/tmp/multipartBody516877973535270638asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973445085,"filename":"image_06042025_23_01_53_9788.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350197797","file1":"1350197795","file0":"1350197793","file4":"1350197801","file5":"1350197805","file3":"1350197799"},"map_files_photo_id_array":[{"photo_id":"1350197805","filename":"file5"},{"photo_id":"1350197797","filename":"file2"},{"photo_id":"1350197801","filename":"file4"},{"photo_id":"1350197795","filename":"file1"},{"photo_id":"1350197793","filename":"file0"},{"photo_id":"1350197799","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350197795":["hashtag1","hashtag2"]},{"1350197801":["hashtag1","hashtag2"]},{"1350197797":["hashtag1","hashtag2"]},{"1350197799":["hashtag1","hashtag2"]},{"1350197793":["hashtag1","hashtag2"]},{"1350197805":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350197795, 1350197801, 1350197797, 1350197799, 1350197793, 1350197805)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.83515000343323 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 23:04:03.334017
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/23/04/image_06042025_23_04_44_10842.jpg', 2), ('/home/nano/Desktop/images/06042025/23/03/image_06042025_23_03_43_9815.jpg', 2), ('/home/nano/Desktop/images/06042025/23/03/image_06042025_23_03_33_9817.jpg', 2), ('/home/nano/Desktop/images/06042025/23/03/image_06042025_23_03_24_9817.jpg', 2), ('/home/nano/Desktop/images/06042025/23/03/image_06042025_23_03_14_9840.jpg', 2), ('/home/nano/Desktop/images/06042025/23/02/image_06042025_23_02_54_10826.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/23/04/image_06042025_23_04_44_10842.jpg', '/home/nano/Desktop/images/06042025/23/03/image_06042025_23_03_43_9815.jpg', '/home/nano/Desktop/images/06042025/23/03/image_06042025_23_03_33_9817.jpg', '/home/nano/Desktop/images/06042025/23/03/image_06042025_23_03_24_9817.jpg', '/home/nano/Desktop/images/06042025/23/03/image_06042025_23_03_14_9840.jpg', '/home/nano/Desktop/images/06042025/23/02/image_06042025_23_02_54_10826.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/23/04/image_06042025_23_04_44_10842.jpg
/home/nano/Desktop/images/06042025/23/03/image_06042025_23_03_43_9815.jpg
/home/nano/Desktop/images/06042025/23/03/image_06042025_23_03_33_9817.jpg
/home/nano/Desktop/images/06042025/23/03/image_06042025_23_03_24_9817.jpg
/home/nano/Desktop/images/06042025/23/03/image_06042025_23_03_14_9840.jpg
/home/nano/Desktop/images/06042025/23/02/image_06042025_23_02_54_10826.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350197852","1350197831","1350197825","1350197848","1350197827","1350197829"],"photo_ids_order":["1350197825","1350197827","1350197829","1350197831","1350197848","1350197852"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/73e57f75ee52df23c3177d31b2f1f6ac.jpg","text":"TemporaryFile(/tmp/multipartBody8337676608035985572asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973505588,"filename":"image_06042025_23_02_54_10826.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/7af672dafd1adf80c39345f7052e582e.jpg","text":"TemporaryFile(/tmp/multipartBody6720516203043428346asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973505588,"filename":"image_06042025_23_03_24_9817.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/9fb72fc6477e8ce1cbcc7e499b6cd42d.jpg","text":"TemporaryFile(/tmp/multipartBody1367006064623638156asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973505588,"filename":"image_06042025_23_04_44_10842.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ac1b883a009061e85ebe3ea36359834c.jpg","text":"TemporaryFile(/tmp/multipartBody3540420292647764058asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973505588,"filename":"image_06042025_23_03_14_9840.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/8a893596b4875ab5847cc310b8b7c81e.jpg","text":"TemporaryFile(/tmp/multipartBody1580076820073564369asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973505588,"filename":"image_06042025_23_03_43_9815.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f8b6441a7d6a00047d0f3e6994fcbfee.jpg","text":"TemporaryFile(/tmp/multipartBody6112553044328485123asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973505588,"filename":"image_06042025_23_03_33_9817.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350197829","file1":"1350197827","file0":"1350197825","file4":"1350197848","file5":"1350197852","file3":"1350197831"},"map_files_photo_id_array":[{"photo_id":"1350197852","filename":"file5"},{"photo_id":"1350197829","filename":"file2"},{"photo_id":"1350197848","filename":"file4"},{"photo_id":"1350197827","filename":"file1"},{"photo_id":"1350197825","filename":"file0"},{"photo_id":"1350197831","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350197852":["hashtag1","hashtag2"]},{"1350197831":["hashtag1","hashtag2"]},{"1350197825":["hashtag1","hashtag2"]},{"1350197848":["hashtag1","hashtag2"]},{"1350197827":["hashtag1","hashtag2"]},{"1350197829":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350197852, 1350197831, 1350197825, 1350197848, 1350197827, 1350197829)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 39.40195059776306 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 23:05:03.379963
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/23/04/image_06042025_23_04_33_9818.jpg', 2), ('/home/nano/Desktop/images/06042025/23/04/image_06042025_23_04_24_9822.jpg', 2), ('/home/nano/Desktop/images/06042025/23/04/image_06042025_23_04_14_9838.jpg', 2), ('/home/nano/Desktop/images/06042025/23/03/image_06042025_23_04_04_9825.jpg', 2), ('/home/nano/Desktop/images/06042025/23/03/image_06042025_23_03_54_10824.jpg', 2), ('/home/nano/Desktop/images/06042025/22/58/image_06042025_22_58_44_9801.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/23/04/image_06042025_23_04_33_9818.jpg', '/home/nano/Desktop/images/06042025/23/04/image_06042025_23_04_24_9822.jpg', '/home/nano/Desktop/images/06042025/23/04/image_06042025_23_04_14_9838.jpg', '/home/nano/Desktop/images/06042025/23/03/image_06042025_23_04_04_9825.jpg', '/home/nano/Desktop/images/06042025/23/03/image_06042025_23_03_54_10824.jpg', '/home/nano/Desktop/images/06042025/22/58/image_06042025_22_58_44_9801.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/23/04/image_06042025_23_04_33_9818.jpg
/home/nano/Desktop/images/06042025/23/04/image_06042025_23_04_24_9822.jpg
/home/nano/Desktop/images/06042025/23/04/image_06042025_23_04_14_9838.jpg
/home/nano/Desktop/images/06042025/23/03/image_06042025_23_04_04_9825.jpg
/home/nano/Desktop/images/06042025/23/03/image_06042025_23_03_54_10824.jpg
/home/nano/Desktop/images/06042025/22/58/image_06042025_22_58_44_9801.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350197972","1350197975","1350197905","1350197979","1350197981","1350197907"],"photo_ids_order":["1350197905","1350197907","1350197972","1350197975","1350197979","1350197981"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/6898569adf4f96cc3d77d8a17504554f.jpg","text":"TemporaryFile(/tmp/multipartBody7218203208829003900asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973565427,"filename":"image_06042025_23_04_14_9838.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f03256bdc99dc412a88df4c66686624f.jpg","text":"TemporaryFile(/tmp/multipartBody5122313067701981463asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973565427,"filename":"image_06042025_23_04_04_9825.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/98dbfa57710d9811a958808727ee8255.jpg","text":"TemporaryFile(/tmp/multipartBody1548256479729745020asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973565427,"filename":"image_06042025_23_04_33_9818.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e1c29801923d8b0b28e9777d18dbe6eb.jpg","text":"TemporaryFile(/tmp/multipartBody7611053895077026555asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973565427,"filename":"image_06042025_23_03_54_10824.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/5da860a5e3dcfd58642b4dfd2da81c7b.jpg","text":"TemporaryFile(/tmp/multipartBody5202523936692825957asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973565427,"filename":"image_06042025_22_58_44_9801.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/be2989e4c0886b87c5f0f0a763e2e0b2.jpg","text":"TemporaryFile(/tmp/multipartBody6217118077586241860asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973565427,"filename":"image_06042025_23_04_24_9822.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350197972","file1":"1350197907","file0":"1350197905","file4":"1350197979","file5":"1350197981","file3":"1350197975"},"map_files_photo_id_array":[{"photo_id":"1350197981","filename":"file5"},{"photo_id":"1350197972","filename":"file2"},{"photo_id":"1350197979","filename":"file4"},{"photo_id":"1350197907","filename":"file1"},{"photo_id":"1350197905","filename":"file0"},{"photo_id":"1350197975","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350197972":["hashtag1","hashtag2"]},{"1350197975":["hashtag1","hashtag2"]},{"1350197905":["hashtag1","hashtag2"]},{"1350197979":["hashtag1","hashtag2"]},{"1350197981":["hashtag1","hashtag2"]},{"1350197907":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350197972, 1350197975, 1350197905, 1350197979, 1350197981, 1350197907)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.147878646850586 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 23:06:03.156464
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/23/05/image_06042025_23_05_44_10812.jpg', 2), ('/home/nano/Desktop/images/06042025/23/05/image_06042025_23_05_33_9816.jpg', 2), ('/home/nano/Desktop/images/06042025/23/05/image_06042025_23_05_23_9813.jpg', 2), ('/home/nano/Desktop/images/06042025/23/05/image_06042025_23_05_14_9842.jpg', 2), ('/home/nano/Desktop/images/06042025/23/04/image_06042025_23_05_04_9833.jpg', 2), ('/home/nano/Desktop/images/06042025/23/04/image_06042025_23_04_54_9815.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/23/05/image_06042025_23_05_44_10812.jpg', '/home/nano/Desktop/images/06042025/23/05/image_06042025_23_05_33_9816.jpg', '/home/nano/Desktop/images/06042025/23/05/image_06042025_23_05_23_9813.jpg', '/home/nano/Desktop/images/06042025/23/05/image_06042025_23_05_14_9842.jpg', '/home/nano/Desktop/images/06042025/23/04/image_06042025_23_05_04_9833.jpg', '/home/nano/Desktop/images/06042025/23/04/image_06042025_23_04_54_9815.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/23/05/image_06042025_23_05_44_10812.jpg
/home/nano/Desktop/images/06042025/23/05/image_06042025_23_05_33_9816.jpg
/home/nano/Desktop/images/06042025/23/05/image_06042025_23_05_23_9813.jpg
/home/nano/Desktop/images/06042025/23/05/image_06042025_23_05_14_9842.jpg
/home/nano/Desktop/images/06042025/23/04/image_06042025_23_05_04_9833.jpg
/home/nano/Desktop/images/06042025/23/04/image_06042025_23_04_54_9815.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350198067","1350198028","1350198069","1350198042","1350198068","1350198032"],"photo_ids_order":["1350198028","1350198032","1350198042","1350198067","1350198068","1350198069"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ae8103e82bca9b6bdffd86c3e7663181.jpg","text":"TemporaryFile(/tmp/multipartBody6631916202992723771asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973625450,"filename":"image_06042025_23_05_14_9842.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/362f021bfa3efeaab8086aa43008ade4.jpg","text":"TemporaryFile(/tmp/multipartBody6995185679426671485asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973625450,"filename":"image_06042025_23_05_44_10812.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/9d55c89079ea39d6646646decc8adc3c.jpg","text":"TemporaryFile(/tmp/multipartBody3631432499463178580asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973625450,"filename":"image_06042025_23_04_54_9815.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/098e0001ea5d58c14769317dca790796.jpg","text":"TemporaryFile(/tmp/multipartBody966347416708260026asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973625450,"filename":"image_06042025_23_05_23_9813.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/2c8103c05f6f4630aea7ae74743cac9f.jpg","text":"TemporaryFile(/tmp/multipartBody5856044627387499293asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973625450,"filename":"image_06042025_23_05_04_9833.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/dc0058db1ddb588f9361bc09fd68b7d5.jpg","text":"TemporaryFile(/tmp/multipartBody3084385178069888173asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973625450,"filename":"image_06042025_23_05_33_9816.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350198042","file1":"1350198032","file0":"1350198028","file4":"1350198068","file5":"1350198069","file3":"1350198067"},"map_files_photo_id_array":[{"photo_id":"1350198069","filename":"file5"},{"photo_id":"1350198042","filename":"file2"},{"photo_id":"1350198068","filename":"file4"},{"photo_id":"1350198032","filename":"file1"},{"photo_id":"1350198028","filename":"file0"},{"photo_id":"1350198067","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350198067":["hashtag1","hashtag2"]},{"1350198028":["hashtag1","hashtag2"]},{"1350198069":["hashtag1","hashtag2"]},{"1350198042":["hashtag1","hashtag2"]},{"1350198068":["hashtag1","hashtag2"]},{"1350198032":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350198067, 1350198028, 1350198069, 1350198042, 1350198068, 1350198032)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.535118103027344 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 23:07:02.438079
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/23/06/image_06042025_23_06_44_10813.jpg', 2), ('/home/nano/Desktop/images/06042025/23/06/image_06042025_23_06_33_9823.jpg', 2), ('/home/nano/Desktop/images/06042025/23/06/image_06042025_23_06_23_9803.jpg', 2), ('/home/nano/Desktop/images/06042025/23/06/image_06042025_23_06_14_9826.jpg', 2), ('/home/nano/Desktop/images/06042025/23/05/image_06042025_23_06_04_9817.jpg', 2), ('/home/nano/Desktop/images/06042025/23/05/image_06042025_23_05_54_9802.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/23/06/image_06042025_23_06_44_10813.jpg', '/home/nano/Desktop/images/06042025/23/06/image_06042025_23_06_33_9823.jpg', '/home/nano/Desktop/images/06042025/23/06/image_06042025_23_06_23_9803.jpg', '/home/nano/Desktop/images/06042025/23/06/image_06042025_23_06_14_9826.jpg', '/home/nano/Desktop/images/06042025/23/05/image_06042025_23_06_04_9817.jpg', '/home/nano/Desktop/images/06042025/23/05/image_06042025_23_05_54_9802.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/23/06/image_06042025_23_06_44_10813.jpg
/home/nano/Desktop/images/06042025/23/06/image_06042025_23_06_33_9823.jpg
/home/nano/Desktop/images/06042025/23/06/image_06042025_23_06_23_9803.jpg
/home/nano/Desktop/images/06042025/23/06/image_06042025_23_06_14_9826.jpg
/home/nano/Desktop/images/06042025/23/05/image_06042025_23_06_04_9817.jpg
/home/nano/Desktop/images/06042025/23/05/image_06042025_23_05_54_9802.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350198305","1350198212","1350198307","1350198360","1350198213","1350198216"],"photo_ids_order":["1350198212","1350198213","1350198216","1350198305","1350198307","1350198360"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/12f0ade9cea2812770f9cec3a1c6ea54.jpg","text":"TemporaryFile(/tmp/multipartBody4759246803061351307asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973684665,"filename":"image_06042025_23_06_14_9826.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/33eda2211afda6aa28e87409064808ed.jpg","text":"TemporaryFile(/tmp/multipartBody2991208390991773513asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973684665,"filename":"image_06042025_23_06_44_10813.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ba886f03ea848b47f0fa3a3c67cfc0fc.jpg","text":"TemporaryFile(/tmp/multipartBody8931186401517147327asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973684665,"filename":"image_06042025_23_06_04_9817.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/70ed9e3f991418d608ff5c20a3e8a508.jpg","text":"TemporaryFile(/tmp/multipartBody2141203349728403894asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973684665,"filename":"image_06042025_23_05_54_9802.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/345ad824e5ea96ffa142157b573e4e97.jpg","text":"TemporaryFile(/tmp/multipartBody6656563648918589002asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973684665,"filename":"image_06042025_23_06_33_9823.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/10829235ebaa2e1ee677e3d384c5e653.jpg","text":"TemporaryFile(/tmp/multipartBody6609043540754892323asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973684665,"filename":"image_06042025_23_06_23_9803.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350198216","file1":"1350198213","file0":"1350198212","file4":"1350198307","file5":"1350198360","file3":"1350198305"},"map_files_photo_id_array":[{"photo_id":"1350198360","filename":"file5"},{"photo_id":"1350198216","filename":"file2"},{"photo_id":"1350198307","filename":"file4"},{"photo_id":"1350198213","filename":"file1"},{"photo_id":"1350198212","filename":"file0"},{"photo_id":"1350198305","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350198305":["hashtag1","hashtag2"]},{"1350198212":["hashtag1","hashtag2"]},{"1350198307":["hashtag1","hashtag2"]},{"1350198360":["hashtag1","hashtag2"]},{"1350198213":["hashtag1","hashtag2"]},{"1350198216":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350198305, 1350198212, 1350198307, 1350198360, 1350198213, 1350198216)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.4437358379364 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 23:08:02.482847
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/23/07/image_06042025_23_07_44_9802.jpg', 2), ('/home/nano/Desktop/images/06042025/23/07/image_06042025_23_07_34_10810.jpg', 2), ('/home/nano/Desktop/images/06042025/23/07/image_06042025_23_07_23_9800.jpg', 2), ('/home/nano/Desktop/images/06042025/23/07/image_06042025_23_07_13_9871.jpg', 2), ('/home/nano/Desktop/images/06042025/23/06/image_06042025_23_07_04_9813.jpg', 2), ('/home/nano/Desktop/images/06042025/23/06/image_06042025_23_06_54_9803.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/23/07/image_06042025_23_07_44_9802.jpg', '/home/nano/Desktop/images/06042025/23/07/image_06042025_23_07_34_10810.jpg', '/home/nano/Desktop/images/06042025/23/07/image_06042025_23_07_23_9800.jpg', '/home/nano/Desktop/images/06042025/23/07/image_06042025_23_07_13_9871.jpg', '/home/nano/Desktop/images/06042025/23/06/image_06042025_23_07_04_9813.jpg', '/home/nano/Desktop/images/06042025/23/06/image_06042025_23_06_54_9803.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/23/07/image_06042025_23_07_44_9802.jpg
/home/nano/Desktop/images/06042025/23/07/image_06042025_23_07_34_10810.jpg
/home/nano/Desktop/images/06042025/23/07/image_06042025_23_07_23_9800.jpg
/home/nano/Desktop/images/06042025/23/07/image_06042025_23_07_13_9871.jpg
/home/nano/Desktop/images/06042025/23/06/image_06042025_23_07_04_9813.jpg
/home/nano/Desktop/images/06042025/23/06/image_06042025_23_06_54_9803.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350198448","1350198430","1350198444","1350198473","1350198440","1350198437"],"photo_ids_order":["1350198430","1350198437","1350198440","1350198444","1350198448","1350198473"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/492766eae12ee8ac4e4cf893b4dd32d9.jpg","text":"TemporaryFile(/tmp/multipartBody1084798913180280124asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973745043,"filename":"image_06042025_23_07_04_9813.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/068f54984158088230bf08a7aed5b76a.jpg","text":"TemporaryFile(/tmp/multipartBody135230124361958140asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973745043,"filename":"image_06042025_23_07_44_9802.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/d9ce507e0442bf094bc0afd65483a291.jpg","text":"TemporaryFile(/tmp/multipartBody4283779509800046759asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973745043,"filename":"image_06042025_23_07_13_9871.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/37d98d268bd99b90fc9ca4b067685404.jpg","text":"TemporaryFile(/tmp/multipartBody5441105711110355457asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973745043,"filename":"image_06042025_23_06_54_9803.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/1e1ec2696d3d79308841b0f87ea804a7.jpg","text":"TemporaryFile(/tmp/multipartBody6829666013735077688asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973745043,"filename":"image_06042025_23_07_23_9800.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/569757b2c7e3dac8fff4cfa4091b4b61.jpg","text":"TemporaryFile(/tmp/multipartBody1094939990880131808asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973745043,"filename":"image_06042025_23_07_34_10810.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350198440","file1":"1350198437","file0":"1350198430","file4":"1350198448","file5":"1350198473","file3":"1350198444"},"map_files_photo_id_array":[{"photo_id":"1350198473","filename":"file5"},{"photo_id":"1350198440","filename":"file2"},{"photo_id":"1350198448","filename":"file4"},{"photo_id":"1350198437","filename":"file1"},{"photo_id":"1350198430","filename":"file0"},{"photo_id":"1350198444","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350198448":["hashtag1","hashtag2"]},{"1350198430":["hashtag1","hashtag2"]},{"1350198444":["hashtag1","hashtag2"]},{"1350198473":["hashtag1","hashtag2"]},{"1350198440":["hashtag1","hashtag2"]},{"1350198437":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350198448, 1350198430, 1350198444, 1350198473, 1350198440, 1350198437)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 56.67343592643738 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 23:09:03.100035
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/23/08/image_06042025_23_08_44_9803.jpg', 2), ('/home/nano/Desktop/images/06042025/23/08/image_06042025_23_08_34_9821.jpg', 2), ('/home/nano/Desktop/images/06042025/23/08/image_06042025_23_08_24_10812.jpg', 2), ('/home/nano/Desktop/images/06042025/23/08/image_06042025_23_08_13_9823.jpg', 2), ('/home/nano/Desktop/images/06042025/23/07/image_06042025_23_08_04_9800.jpg', 2), ('/home/nano/Desktop/images/06042025/23/07/image_06042025_23_07_54_9821.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/23/08/image_06042025_23_08_44_9803.jpg', '/home/nano/Desktop/images/06042025/23/08/image_06042025_23_08_34_9821.jpg', '/home/nano/Desktop/images/06042025/23/08/image_06042025_23_08_24_10812.jpg', '/home/nano/Desktop/images/06042025/23/08/image_06042025_23_08_13_9823.jpg', '/home/nano/Desktop/images/06042025/23/07/image_06042025_23_08_04_9800.jpg', '/home/nano/Desktop/images/06042025/23/07/image_06042025_23_07_54_9821.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/23/08/image_06042025_23_08_44_9803.jpg
/home/nano/Desktop/images/06042025/23/08/image_06042025_23_08_34_9821.jpg
/home/nano/Desktop/images/06042025/23/08/image_06042025_23_08_24_10812.jpg
/home/nano/Desktop/images/06042025/23/08/image_06042025_23_08_13_9823.jpg
/home/nano/Desktop/images/06042025/23/07/image_06042025_23_08_04_9800.jpg
/home/nano/Desktop/images/06042025/23/07/image_06042025_23_07_54_9821.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350198514","1350198505","1350198510","1350198504","1350198497","1350198515"],"photo_ids_order":["1350198497","1350198504","1350198505","1350198510","1350198514","1350198515"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f52620219cddc170f330c4f82640f3fd.jpg","text":"TemporaryFile(/tmp/multipartBody414747578661392757asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973807054,"filename":"image_06042025_23_08_04_9800.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/9221c9595a27af5b813794d6278a208a.jpg","text":"TemporaryFile(/tmp/multipartBody4080140412229490461asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973807054,"filename":"image_06042025_23_08_24_10812.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e0a24316cc382278182d7f34eb7ac81b.jpg","text":"TemporaryFile(/tmp/multipartBody4776416969171022489asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973807054,"filename":"image_06042025_23_08_13_9823.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/9fb228d8ddea70e7df1baf178869a7fe.jpg","text":"TemporaryFile(/tmp/multipartBody4749623179854059704asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973807054,"filename":"image_06042025_23_08_34_9821.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b95ed5a7d6c2179739985f014e0a4c90.jpg","text":"TemporaryFile(/tmp/multipartBody6860173871735456605asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973807054,"filename":"image_06042025_23_08_44_9803.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c4e79a42379ac80ae759df28d38b0406.jpg","text":"TemporaryFile(/tmp/multipartBody4599216962548160087asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973807054,"filename":"image_06042025_23_07_54_9821.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350198505","file1":"1350198504","file0":"1350198497","file4":"1350198514","file5":"1350198515","file3":"1350198510"},"map_files_photo_id_array":[{"photo_id":"1350198515","filename":"file5"},{"photo_id":"1350198505","filename":"file2"},{"photo_id":"1350198514","filename":"file4"},{"photo_id":"1350198504","filename":"file1"},{"photo_id":"1350198497","filename":"file0"},{"photo_id":"1350198510","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350198514":["hashtag1","hashtag2"]},{"1350198505":["hashtag1","hashtag2"]},{"1350198510":["hashtag1","hashtag2"]},{"1350198504":["hashtag1","hashtag2"]},{"1350198497":["hashtag1","hashtag2"]},{"1350198515":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350198514, 1350198505, 1350198510, 1350198504, 1350198497, 1350198515)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 36.623581647872925 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 23:10:02.601286
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/23/09/image_06042025_23_09_44_9805.jpg', 2), ('/home/nano/Desktop/images/06042025/23/09/image_06042025_23_09_34_9802.jpg', 2), ('/home/nano/Desktop/images/06042025/23/09/image_06042025_23_09_24_10811.jpg', 2), ('/home/nano/Desktop/images/06042025/23/09/image_06042025_23_09_13_9822.jpg', 2), ('/home/nano/Desktop/images/06042025/23/08/image_06042025_23_09_03_9819.jpg', 2), ('/home/nano/Desktop/images/06042025/23/08/image_06042025_23_08_54_9803.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/23/09/image_06042025_23_09_44_9805.jpg', '/home/nano/Desktop/images/06042025/23/09/image_06042025_23_09_34_9802.jpg', '/home/nano/Desktop/images/06042025/23/09/image_06042025_23_09_24_10811.jpg', '/home/nano/Desktop/images/06042025/23/09/image_06042025_23_09_13_9822.jpg', '/home/nano/Desktop/images/06042025/23/08/image_06042025_23_09_03_9819.jpg', '/home/nano/Desktop/images/06042025/23/08/image_06042025_23_08_54_9803.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/23/09/image_06042025_23_09_44_9805.jpg
/home/nano/Desktop/images/06042025/23/09/image_06042025_23_09_34_9802.jpg
/home/nano/Desktop/images/06042025/23/09/image_06042025_23_09_24_10811.jpg
/home/nano/Desktop/images/06042025/23/09/image_06042025_23_09_13_9822.jpg
/home/nano/Desktop/images/06042025/23/08/image_06042025_23_09_03_9819.jpg
/home/nano/Desktop/images/06042025/23/08/image_06042025_23_08_54_9803.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350198595","1350198598","1350198555","1350198596","1350198599","1350198593"],"photo_ids_order":["1350198555","1350198593","1350198595","1350198596","1350198598","1350198599"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/be5fd0b27e1d1a3836dd3e36342b0acc.jpg","text":"TemporaryFile(/tmp/multipartBody2951636479762500113asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973865210,"filename":"image_06042025_23_09_24_10811.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/07715f00e1fa1c84d2a6bf44495af21b.jpg","text":"TemporaryFile(/tmp/multipartBody6145265748184482911asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973865210,"filename":"image_06042025_23_09_03_9819.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ed0c428bd40f143ffc1606b6406fdcfe.jpg","text":"TemporaryFile(/tmp/multipartBody3746935984865914494asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973865210,"filename":"image_06042025_23_09_44_9805.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b49a24dc974b4e00037ced3dd473ea0e.jpg","text":"TemporaryFile(/tmp/multipartBody9203747682563729415asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973865210,"filename":"image_06042025_23_09_13_9822.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/6f37a00f52d029a6a29eb7fb9a21b845.jpg","text":"TemporaryFile(/tmp/multipartBody6257509750415553012asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973865210,"filename":"image_06042025_23_08_54_9803.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/95929b2edf93b99534e68f821cb6428c.jpg","text":"TemporaryFile(/tmp/multipartBody4344937651695915375asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973865210,"filename":"image_06042025_23_09_34_9802.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350198595","file1":"1350198593","file0":"1350198555","file4":"1350198598","file5":"1350198599","file3":"1350198596"},"map_files_photo_id_array":[{"photo_id":"1350198599","filename":"file5"},{"photo_id":"1350198595","filename":"file2"},{"photo_id":"1350198598","filename":"file4"},{"photo_id":"1350198593","filename":"file1"},{"photo_id":"1350198555","filename":"file0"},{"photo_id":"1350198596","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350198595":["hashtag1","hashtag2"]},{"1350198598":["hashtag1","hashtag2"]},{"1350198555":["hashtag1","hashtag2"]},{"1350198596":["hashtag1","hashtag2"]},{"1350198599":["hashtag1","hashtag2"]},{"1350198593":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350198595, 1350198598, 1350198555, 1350198596, 1350198599, 1350198593)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.725897789001465 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 23:11:02.844425
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/23/10/image_06042025_23_10_44_9818.jpg', 2), ('/home/nano/Desktop/images/06042025/23/10/image_06042025_23_10_34_9804.jpg', 2), ('/home/nano/Desktop/images/06042025/23/10/image_06042025_23_10_24_9833.jpg', 2), ('/home/nano/Desktop/images/06042025/23/10/image_06042025_23_10_14_10827.jpg', 2), ('/home/nano/Desktop/images/06042025/23/09/image_06042025_23_10_03_9819.jpg', 2), ('/home/nano/Desktop/images/06042025/23/09/image_06042025_23_09_53_9802.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/23/10/image_06042025_23_10_44_9818.jpg', '/home/nano/Desktop/images/06042025/23/10/image_06042025_23_10_34_9804.jpg', '/home/nano/Desktop/images/06042025/23/10/image_06042025_23_10_24_9833.jpg', '/home/nano/Desktop/images/06042025/23/10/image_06042025_23_10_14_10827.jpg', '/home/nano/Desktop/images/06042025/23/09/image_06042025_23_10_03_9819.jpg', '/home/nano/Desktop/images/06042025/23/09/image_06042025_23_09_53_9802.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/23/10/image_06042025_23_10_44_9818.jpg
/home/nano/Desktop/images/06042025/23/10/image_06042025_23_10_34_9804.jpg
/home/nano/Desktop/images/06042025/23/10/image_06042025_23_10_24_9833.jpg
/home/nano/Desktop/images/06042025/23/10/image_06042025_23_10_14_10827.jpg
/home/nano/Desktop/images/06042025/23/09/image_06042025_23_10_03_9819.jpg
/home/nano/Desktop/images/06042025/23/09/image_06042025_23_09_53_9802.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350198685","1350198663","1350198689","1350198665","1350198674","1350198668"],"photo_ids_order":["1350198663","1350198665","1350198668","1350198674","1350198685","1350198689"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/7ea79bb99a0c493b6eac549119dd12e3.jpg","text":"TemporaryFile(/tmp/multipartBody111960718463450280asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973924532,"filename":"image_06042025_23_10_03_9819.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/dd8308ec74df18b1c4370f352ab6cbd5.jpg","text":"TemporaryFile(/tmp/multipartBody2113520476192419845asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973924532,"filename":"image_06042025_23_10_44_9818.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/80de26254836e9c63bf5b136c5fe36ad.jpg","text":"TemporaryFile(/tmp/multipartBody7641914503527135710asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973924532,"filename":"image_06042025_23_09_53_9802.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b1ef792db41d28d5c4d8ac5c5db47955.jpg","text":"TemporaryFile(/tmp/multipartBody7789574622066853895asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973924532,"filename":"image_06042025_23_10_34_9804.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/6cff8ca8848ed55511a43d23965aa1ec.jpg","text":"TemporaryFile(/tmp/multipartBody622529645951599028asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973924532,"filename":"image_06042025_23_10_14_10827.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/fed2da290cd97067bc9d980b46ff52d0.jpg","text":"TemporaryFile(/tmp/multipartBody4100162310611294461asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743973924532,"filename":"image_06042025_23_10_24_9833.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350198668","file1":"1350198665","file0":"1350198663","file4":"1350198685","file5":"1350198689","file3":"1350198674"},"map_files_photo_id_array":[{"photo_id":"1350198689","filename":"file5"},{"photo_id":"1350198668","filename":"file2"},{"photo_id":"1350198685","filename":"file4"},{"photo_id":"1350198665","filename":"file1"},{"photo_id":"1350198663","filename":"file0"},{"photo_id":"1350198674","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350198685":["hashtag1","hashtag2"]},{"1350198663":["hashtag1","hashtag2"]},{"1350198689":["hashtag1","hashtag2"]},{"1350198665":["hashtag1","hashtag2"]},{"1350198674":["hashtag1","hashtag2"]},{"1350198668":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350198685, 1350198663, 1350198689, 1350198665, 1350198674, 1350198668)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.69213533401489 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 23:12:02.729359
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/23/11/image_06042025_23_11_43_9757.jpg', 2), ('/home/nano/Desktop/images/06042025/23/11/image_06042025_23_11_34_9801.jpg', 2), ('/home/nano/Desktop/images/06042025/23/11/image_06042025_23_11_24_9800.jpg', 2), ('/home/nano/Desktop/images/06042025/23/11/image_06042025_23_11_14_10834.jpg', 2), ('/home/nano/Desktop/images/06042025/23/10/image_06042025_23_11_03_9845.jpg', 2), ('/home/nano/Desktop/images/06042025/23/10/image_06042025_23_10_53_9809.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/23/11/image_06042025_23_11_43_9757.jpg', '/home/nano/Desktop/images/06042025/23/11/image_06042025_23_11_34_9801.jpg', '/home/nano/Desktop/images/06042025/23/11/image_06042025_23_11_24_9800.jpg', '/home/nano/Desktop/images/06042025/23/11/image_06042025_23_11_14_10834.jpg', '/home/nano/Desktop/images/06042025/23/10/image_06042025_23_11_03_9845.jpg', '/home/nano/Desktop/images/06042025/23/10/image_06042025_23_10_53_9809.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/23/11/image_06042025_23_11_43_9757.jpg
/home/nano/Desktop/images/06042025/23/11/image_06042025_23_11_34_9801.jpg
/home/nano/Desktop/images/06042025/23/11/image_06042025_23_11_24_9800.jpg
/home/nano/Desktop/images/06042025/23/11/image_06042025_23_11_14_10834.jpg
/home/nano/Desktop/images/06042025/23/10/image_06042025_23_11_03_9845.jpg
/home/nano/Desktop/images/06042025/23/10/image_06042025_23_10_53_9809.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 2.009443998336792 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 23:12:32.301834
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/23/12/image_06042025_23_12_43_9659.jpg', 2), ('/home/nano/Desktop/images/06042025/23/12/image_06042025_23_12_34_9633.jpg', 2), ('/home/nano/Desktop/images/06042025/23/12/image_06042025_23_12_24_10641.jpg', 2), ('/home/nano/Desktop/images/06042025/23/12/image_06042025_23_12_13_9649.jpg', 2), ('/home/nano/Desktop/images/06042025/23/11/image_06042025_23_11_54_10767.jpg', 2), ('/home/nano/Desktop/images/06042025/23/11/image_06042025_23_11_43_9757.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/23/12/image_06042025_23_12_43_9659.jpg', '/home/nano/Desktop/images/06042025/23/12/image_06042025_23_12_34_9633.jpg', '/home/nano/Desktop/images/06042025/23/12/image_06042025_23_12_24_10641.jpg', '/home/nano/Desktop/images/06042025/23/12/image_06042025_23_12_13_9649.jpg', '/home/nano/Desktop/images/06042025/23/11/image_06042025_23_11_54_10767.jpg', '/home/nano/Desktop/images/06042025/23/11/image_06042025_23_11_43_9757.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/23/12/image_06042025_23_12_43_9659.jpg
/home/nano/Desktop/images/06042025/23/12/image_06042025_23_12_34_9633.jpg
/home/nano/Desktop/images/06042025/23/12/image_06042025_23_12_24_10641.jpg
/home/nano/Desktop/images/06042025/23/12/image_06042025_23_12_13_9649.jpg
/home/nano/Desktop/images/06042025/23/11/image_06042025_23_11_54_10767.jpg
/home/nano/Desktop/images/06042025/23/11/image_06042025_23_11_43_9757.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350198757","1350198771","1350198762","1350198759","1350198819","1350198755"],"photo_ids_order":["1350198755","1350198757","1350198759","1350198762","1350198771","1350198819"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/af2044587cad4a54809b6d49a6896a96.jpg","text":"TemporaryFile(/tmp/multipartBody6329027297796253295asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974014047,"filename":"image_06042025_23_12_34_9633.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/59fe0f7e13d4d497ea15d1362201709c.jpg","text":"TemporaryFile(/tmp/multipartBody1988466226830067913asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974014047,"filename":"image_06042025_23_11_54_10767.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/d866e82acf0ef0738f2f7d064e3c27df.jpg","text":"TemporaryFile(/tmp/multipartBody8804754500796264364asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974014047,"filename":"image_06042025_23_12_13_9649.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/12c8e1a83a561c86fb95f6e0924c70b2.jpg","text":"TemporaryFile(/tmp/multipartBody3275233138922447862asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974014047,"filename":"image_06042025_23_12_24_10641.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/76e81a4055a933e20cac15078a8d7625.jpg","text":"TemporaryFile(/tmp/multipartBody2083602114474758568asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974014047,"filename":"image_06042025_23_11_43_9757.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/24d5d108e866df24ac30626dafa207aa.jpg","text":"TemporaryFile(/tmp/multipartBody783233106722491916asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974014047,"filename":"image_06042025_23_12_43_9659.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350198759","file1":"1350198757","file0":"1350198755","file4":"1350198771","file5":"1350198819","file3":"1350198762"},"map_files_photo_id_array":[{"photo_id":"1350198819","filename":"file5"},{"photo_id":"1350198759","filename":"file2"},{"photo_id":"1350198771","filename":"file4"},{"photo_id":"1350198757","filename":"file1"},{"photo_id":"1350198755","filename":"file0"},{"photo_id":"1350198762","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350198757":["hashtag1","hashtag2"]},{"1350198771":["hashtag1","hashtag2"]},{"1350198762":["hashtag1","hashtag2"]},{"1350198759":["hashtag1","hashtag2"]},{"1350198819":["hashtag1","hashtag2"]},{"1350198755":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350198757, 1350198771, 1350198762, 1350198759, 1350198819, 1350198755)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 45.906978607177734 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 23:13:32.386988
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/23/13/image_06042025_23_13_53_9757.jpg', 2), ('/home/nano/Desktop/images/06042025/23/13/image_06042025_23_13_34_9776.jpg', 2), ('/home/nano/Desktop/images/06042025/23/13/image_06042025_23_13_13_9659.jpg', 2), ('/home/nano/Desktop/images/06042025/23/12/image_06042025_23_13_04_9637.jpg', 2), ('/home/nano/Desktop/images/06042025/23/12/image_06042025_23_12_54_10662.jpg', 2), ('/home/nano/Desktop/images/06042025/23/11/image_06042025_23_11_34_9801.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/23/13/image_06042025_23_13_53_9757.jpg', '/home/nano/Desktop/images/06042025/23/13/image_06042025_23_13_34_9776.jpg', '/home/nano/Desktop/images/06042025/23/13/image_06042025_23_13_13_9659.jpg', '/home/nano/Desktop/images/06042025/23/12/image_06042025_23_13_04_9637.jpg', '/home/nano/Desktop/images/06042025/23/12/image_06042025_23_12_54_10662.jpg', '/home/nano/Desktop/images/06042025/23/11/image_06042025_23_11_34_9801.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/23/13/image_06042025_23_13_53_9757.jpg
/home/nano/Desktop/images/06042025/23/13/image_06042025_23_13_34_9776.jpg
/home/nano/Desktop/images/06042025/23/13/image_06042025_23_13_13_9659.jpg
/home/nano/Desktop/images/06042025/23/12/image_06042025_23_13_04_9637.jpg
/home/nano/Desktop/images/06042025/23/12/image_06042025_23_12_54_10662.jpg
/home/nano/Desktop/images/06042025/23/11/image_06042025_23_11_34_9801.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350198869","1350198860","1350198863","1350198857","1350198866","1350198854"],"photo_ids_order":["1350198854","1350198857","1350198860","1350198863","1350198866","1350198869"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a8e15096035ecf33d1af5f332761c9a4.jpg","text":"TemporaryFile(/tmp/multipartBody9078244972440583252asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974074673,"filename":"image_06042025_23_11_34_9801.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ee85a25d0eae2a396e6d43ef60701fa3.jpg","text":"TemporaryFile(/tmp/multipartBody4196506793404956452asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974074673,"filename":"image_06042025_23_13_13_9659.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c72fe04e519842800e046872b0ab97ab.jpg","text":"TemporaryFile(/tmp/multipartBody5927817547156336421asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974074673,"filename":"image_06042025_23_13_04_9637.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/396ec90a9443cd9a6d983cadf29f40af.jpg","text":"TemporaryFile(/tmp/multipartBody1858737489639176433asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974074673,"filename":"image_06042025_23_13_34_9776.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/42fbc7aeeeeb34957d7d8f42da1e5426.jpg","text":"TemporaryFile(/tmp/multipartBody711455421892769559asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974074673,"filename":"image_06042025_23_12_54_10662.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b94cca1e31df1ab2e6702a29b2572c69.jpg","text":"TemporaryFile(/tmp/multipartBody646371852113299449asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974074673,"filename":"image_06042025_23_13_53_9757.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350198860","file1":"1350198857","file0":"1350198854","file4":"1350198866","file5":"1350198869","file3":"1350198863"},"map_files_photo_id_array":[{"photo_id":"1350198869","filename":"file5"},{"photo_id":"1350198860","filename":"file2"},{"photo_id":"1350198866","filename":"file4"},{"photo_id":"1350198857","filename":"file1"},{"photo_id":"1350198854","filename":"file0"},{"photo_id":"1350198863","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350198869":["hashtag1","hashtag2"]},{"1350198860":["hashtag1","hashtag2"]},{"1350198863":["hashtag1","hashtag2"]},{"1350198857":["hashtag1","hashtag2"]},{"1350198866":["hashtag1","hashtag2"]},{"1350198854":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350198869, 1350198860, 1350198863, 1350198857, 1350198866, 1350198854)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.62249994277954 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 23:14:32.474612
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/23/14/image_06042025_23_14_44_10652.jpg', 2), ('/home/nano/Desktop/images/06042025/23/14/image_06042025_23_14_33_9643.jpg', 2), ('/home/nano/Desktop/images/06042025/23/14/image_06042025_23_14_24_9755.jpg', 2), ('/home/nano/Desktop/images/06042025/23/14/image_06042025_23_14_14_10787.jpg', 2), ('/home/nano/Desktop/images/06042025/23/13/image_06042025_23_14_03_9758.jpg', 2), ('/home/nano/Desktop/images/06042025/23/13/image_06042025_23_13_44_9756.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/23/14/image_06042025_23_14_44_10652.jpg', '/home/nano/Desktop/images/06042025/23/14/image_06042025_23_14_33_9643.jpg', '/home/nano/Desktop/images/06042025/23/14/image_06042025_23_14_24_9755.jpg', '/home/nano/Desktop/images/06042025/23/14/image_06042025_23_14_14_10787.jpg', '/home/nano/Desktop/images/06042025/23/13/image_06042025_23_14_03_9758.jpg', '/home/nano/Desktop/images/06042025/23/13/image_06042025_23_13_44_9756.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/23/14/image_06042025_23_14_44_10652.jpg
/home/nano/Desktop/images/06042025/23/14/image_06042025_23_14_33_9643.jpg
/home/nano/Desktop/images/06042025/23/14/image_06042025_23_14_24_9755.jpg
/home/nano/Desktop/images/06042025/23/14/image_06042025_23_14_14_10787.jpg
/home/nano/Desktop/images/06042025/23/13/image_06042025_23_14_03_9758.jpg
/home/nano/Desktop/images/06042025/23/13/image_06042025_23_13_44_9756.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350198898","1350198902","1350198904","1350198907","1350198885","1350198878"],"photo_ids_order":["1350198878","1350198885","1350198898","1350198902","1350198904","1350198907"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/1889d89f144de75dd6c7ef5ef735309c.jpg","text":"TemporaryFile(/tmp/multipartBody531810453811955926asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974134440,"filename":"image_06042025_23_14_24_9755.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/5b27c7ff8299b2813de1f5ae0208dfa1.jpg","text":"TemporaryFile(/tmp/multipartBody2287747251060011349asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974134440,"filename":"image_06042025_23_14_14_10787.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/6891df001815435b09e851cef0dd87b6.jpg","text":"TemporaryFile(/tmp/multipartBody26880338115926635asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974134440,"filename":"image_06042025_23_14_03_9758.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f774b6f86efed4f2c3297835585578f7.jpg","text":"TemporaryFile(/tmp/multipartBody8451591421418225313asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974134440,"filename":"image_06042025_23_13_44_9756.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/51cb2b3199b358ccd27299cb5eec4e9a.jpg","text":"TemporaryFile(/tmp/multipartBody5577163186890105466asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974134440,"filename":"image_06042025_23_14_33_9643.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/7ebe31154061cd54b4fc4fee27881e07.jpg","text":"TemporaryFile(/tmp/multipartBody6477519193338780880asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974134440,"filename":"image_06042025_23_14_44_10652.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350198898","file1":"1350198885","file0":"1350198878","file4":"1350198904","file5":"1350198907","file3":"1350198902"},"map_files_photo_id_array":[{"photo_id":"1350198907","filename":"file5"},{"photo_id":"1350198898","filename":"file2"},{"photo_id":"1350198904","filename":"file4"},{"photo_id":"1350198885","filename":"file1"},{"photo_id":"1350198878","filename":"file0"},{"photo_id":"1350198902","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350198898":["hashtag1","hashtag2"]},{"1350198902":["hashtag1","hashtag2"]},{"1350198904":["hashtag1","hashtag2"]},{"1350198907":["hashtag1","hashtag2"]},{"1350198885":["hashtag1","hashtag2"]},{"1350198878":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350198898, 1350198902, 1350198904, 1350198907, 1350198885, 1350198878)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.22365474700928 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 23:15:32.569550
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/23/15/image_06042025_23_15_44_10653.jpg', 2), ('/home/nano/Desktop/images/06042025/23/15/image_06042025_23_15_33_9646.jpg', 2), ('/home/nano/Desktop/images/06042025/23/15/image_06042025_23_15_24_9645.jpg', 2), ('/home/nano/Desktop/images/06042025/23/15/image_06042025_23_15_14_10676.jpg', 2), ('/home/nano/Desktop/images/06042025/23/14/image_06042025_23_15_03_9645.jpg', 2), ('/home/nano/Desktop/images/06042025/23/14/image_06042025_23_14_54_9640.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/23/15/image_06042025_23_15_44_10653.jpg', '/home/nano/Desktop/images/06042025/23/15/image_06042025_23_15_33_9646.jpg', '/home/nano/Desktop/images/06042025/23/15/image_06042025_23_15_24_9645.jpg', '/home/nano/Desktop/images/06042025/23/15/image_06042025_23_15_14_10676.jpg', '/home/nano/Desktop/images/06042025/23/14/image_06042025_23_15_03_9645.jpg', '/home/nano/Desktop/images/06042025/23/14/image_06042025_23_14_54_9640.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/23/15/image_06042025_23_15_44_10653.jpg
/home/nano/Desktop/images/06042025/23/15/image_06042025_23_15_33_9646.jpg
/home/nano/Desktop/images/06042025/23/15/image_06042025_23_15_24_9645.jpg
/home/nano/Desktop/images/06042025/23/15/image_06042025_23_15_14_10676.jpg
/home/nano/Desktop/images/06042025/23/14/image_06042025_23_15_03_9645.jpg
/home/nano/Desktop/images/06042025/23/14/image_06042025_23_14_54_9640.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350198979","1350198982","1350198976","1350198986","1350198989","1350198974"],"photo_ids_order":["1350198974","1350198976","1350198979","1350198982","1350198986","1350198989"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f55a75c7f3e359917096f9d861d77679.jpg","text":"TemporaryFile(/tmp/multipartBody5515207421189888479asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974194505,"filename":"image_06042025_23_15_24_9645.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/24e10807cee5dfa677ca890ffbe9a41e.jpg","text":"TemporaryFile(/tmp/multipartBody7380385513352758181asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974194505,"filename":"image_06042025_23_15_14_10676.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c796fa73bdfa82f637a89bd01aa141f5.jpg","text":"TemporaryFile(/tmp/multipartBody5191138912809397673asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974194505,"filename":"image_06042025_23_15_33_9646.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/33fc7e1d7c2b2b50a9178bdcd2433c6d.jpg","text":"TemporaryFile(/tmp/multipartBody4739774875843584698asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974194505,"filename":"image_06042025_23_15_03_9645.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e1fd990d2612314a4f9ea5bd4b7d00da.jpg","text":"TemporaryFile(/tmp/multipartBody6068593477954882649asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974194505,"filename":"image_06042025_23_14_54_9640.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c7a4f46e76e52313756da9a97d09f2f0.jpg","text":"TemporaryFile(/tmp/multipartBody5798753574871323649asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974194505,"filename":"image_06042025_23_15_44_10653.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350198979","file1":"1350198976","file0":"1350198974","file4":"1350198986","file5":"1350198989","file3":"1350198982"},"map_files_photo_id_array":[{"photo_id":"1350198989","filename":"file5"},{"photo_id":"1350198979","filename":"file2"},{"photo_id":"1350198986","filename":"file4"},{"photo_id":"1350198976","filename":"file1"},{"photo_id":"1350198974","filename":"file0"},{"photo_id":"1350198982","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350198979":["hashtag1","hashtag2"]},{"1350198982":["hashtag1","hashtag2"]},{"1350198976":["hashtag1","hashtag2"]},{"1350198986":["hashtag1","hashtag2"]},{"1350198989":["hashtag1","hashtag2"]},{"1350198974":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350198979, 1350198982, 1350198976, 1350198986, 1350198989, 1350198974)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.29095005989075 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 23:16:32.677495
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/23/16/image_06042025_23_16_44_10693.jpg', 2), ('/home/nano/Desktop/images/06042025/23/16/image_06042025_23_16_33_9644.jpg', 2), ('/home/nano/Desktop/images/06042025/23/16/image_06042025_23_16_24_9644.jpg', 2), ('/home/nano/Desktop/images/06042025/23/16/image_06042025_23_16_14_10669.jpg', 2), ('/home/nano/Desktop/images/06042025/23/15/image_06042025_23_16_03_9651.jpg', 2), ('/home/nano/Desktop/images/06042025/23/15/image_06042025_23_15_54_9644.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/23/16/image_06042025_23_16_44_10693.jpg', '/home/nano/Desktop/images/06042025/23/16/image_06042025_23_16_33_9644.jpg', '/home/nano/Desktop/images/06042025/23/16/image_06042025_23_16_24_9644.jpg', '/home/nano/Desktop/images/06042025/23/16/image_06042025_23_16_14_10669.jpg', '/home/nano/Desktop/images/06042025/23/15/image_06042025_23_16_03_9651.jpg', '/home/nano/Desktop/images/06042025/23/15/image_06042025_23_15_54_9644.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/23/16/image_06042025_23_16_44_10693.jpg
/home/nano/Desktop/images/06042025/23/16/image_06042025_23_16_33_9644.jpg
/home/nano/Desktop/images/06042025/23/16/image_06042025_23_16_24_9644.jpg
/home/nano/Desktop/images/06042025/23/16/image_06042025_23_16_14_10669.jpg
/home/nano/Desktop/images/06042025/23/15/image_06042025_23_16_03_9651.jpg
/home/nano/Desktop/images/06042025/23/15/image_06042025_23_15_54_9644.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350198997","1350199003","1350199006","1350199009","1350199000","1350199011"],"photo_ids_order":["1350198997","1350199000","1350199003","1350199006","1350199009","1350199011"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/1e3dd60ad5f86383f7243d543f01192a.jpg","text":"TemporaryFile(/tmp/multipartBody6324092444742627768asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974254012,"filename":"image_06042025_23_16_44_10693.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f1ef5f038ebc36946ffe8e271442c114.jpg","text":"TemporaryFile(/tmp/multipartBody3344970157718214729asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974254012,"filename":"image_06042025_23_16_24_9644.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/d8e52435779945430d0a72e69718c73c.jpg","text":"TemporaryFile(/tmp/multipartBody2438768567834283533asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974254012,"filename":"image_06042025_23_16_14_10669.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/bcd5edf6ab463828802fc29bcee1b1be.jpg","text":"TemporaryFile(/tmp/multipartBody5405080111387282773asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974254012,"filename":"image_06042025_23_16_03_9651.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/910ce3055e49d43b116ceb9faa497601.jpg","text":"TemporaryFile(/tmp/multipartBody6989629481265228348asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974254012,"filename":"image_06042025_23_16_33_9644.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/9256d7c80e54dac129da8deb0cf4a126.jpg","text":"TemporaryFile(/tmp/multipartBody1638971651520181432asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974254012,"filename":"image_06042025_23_15_54_9644.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350199003","file1":"1350199000","file0":"1350198997","file4":"1350199009","file5":"1350199011","file3":"1350199006"},"map_files_photo_id_array":[{"photo_id":"1350199011","filename":"file5"},{"photo_id":"1350199003","filename":"file2"},{"photo_id":"1350199009","filename":"file4"},{"photo_id":"1350199000","filename":"file1"},{"photo_id":"1350198997","filename":"file0"},{"photo_id":"1350199006","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350198997":["hashtag1","hashtag2"]},{"1350199003":["hashtag1","hashtag2"]},{"1350199006":["hashtag1","hashtag2"]},{"1350199009":["hashtag1","hashtag2"]},{"1350199000":["hashtag1","hashtag2"]},{"1350199011":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350198997, 1350199003, 1350199006, 1350199009, 1350199000, 1350199011)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.335917949676514 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 23:17:31.863349
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/23/17/image_06042025_23_17_43_9831.jpg', 2), ('/home/nano/Desktop/images/06042025/23/17/image_06042025_23_17_34_9829.jpg', 2), ('/home/nano/Desktop/images/06042025/23/17/image_06042025_23_17_24_9823.jpg', 2), ('/home/nano/Desktop/images/06042025/23/17/image_06042025_23_17_14_9848.jpg', 2), ('/home/nano/Desktop/images/06042025/23/16/image_06042025_23_17_04_10653.jpg', 2), ('/home/nano/Desktop/images/06042025/23/16/image_06042025_23_16_53_9644.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/23/17/image_06042025_23_17_43_9831.jpg', '/home/nano/Desktop/images/06042025/23/17/image_06042025_23_17_34_9829.jpg', '/home/nano/Desktop/images/06042025/23/17/image_06042025_23_17_24_9823.jpg', '/home/nano/Desktop/images/06042025/23/17/image_06042025_23_17_14_9848.jpg', '/home/nano/Desktop/images/06042025/23/16/image_06042025_23_17_04_10653.jpg', '/home/nano/Desktop/images/06042025/23/16/image_06042025_23_16_53_9644.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/23/17/image_06042025_23_17_43_9831.jpg
/home/nano/Desktop/images/06042025/23/17/image_06042025_23_17_34_9829.jpg
/home/nano/Desktop/images/06042025/23/17/image_06042025_23_17_24_9823.jpg
/home/nano/Desktop/images/06042025/23/17/image_06042025_23_17_14_9848.jpg
/home/nano/Desktop/images/06042025/23/16/image_06042025_23_17_04_10653.jpg
/home/nano/Desktop/images/06042025/23/16/image_06042025_23_16_53_9644.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350199075","1350199077","1350199038","1350199073","1350199079","1350199064"],"photo_ids_order":["1350199038","1350199064","1350199073","1350199075","1350199077","1350199079"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/6d65887f2bf8e0677b499565f4b0297e.jpg","text":"TemporaryFile(/tmp/multipartBody8967880771913408653asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974314988,"filename":"image_06042025_23_17_14_9848.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/5baaa1b766bb2cd167c38f4348b69d06.jpg","text":"TemporaryFile(/tmp/multipartBody7370980181178841946asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974314988,"filename":"image_06042025_23_17_04_10653.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f548a6082d452c42fafda610e2e82c5a.jpg","text":"TemporaryFile(/tmp/multipartBody1229482189895973393asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974314988,"filename":"image_06042025_23_17_43_9831.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/033a5a3acfaaed309d1fb65b0e5fc2af.jpg","text":"TemporaryFile(/tmp/multipartBody2824273451463812715asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974314988,"filename":"image_06042025_23_17_24_9823.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/cdbfb4f7726b7af7d0627561811c9a69.jpg","text":"TemporaryFile(/tmp/multipartBody4379690528889409557asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974314988,"filename":"image_06042025_23_16_53_9644.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/78c6643e6dda605843fd50b0e10036c0.jpg","text":"TemporaryFile(/tmp/multipartBody1367645737423669693asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974314988,"filename":"image_06042025_23_17_34_9829.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350199073","file1":"1350199064","file0":"1350199038","file4":"1350199077","file5":"1350199079","file3":"1350199075"},"map_files_photo_id_array":[{"photo_id":"1350199079","filename":"file5"},{"photo_id":"1350199073","filename":"file2"},{"photo_id":"1350199077","filename":"file4"},{"photo_id":"1350199064","filename":"file1"},{"photo_id":"1350199038","filename":"file0"},{"photo_id":"1350199075","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350199075":["hashtag1","hashtag2"]},{"1350199077":["hashtag1","hashtag2"]},{"1350199038":["hashtag1","hashtag2"]},{"1350199073":["hashtag1","hashtag2"]},{"1350199079":["hashtag1","hashtag2"]},{"1350199064":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350199075, 1350199077, 1350199038, 1350199073, 1350199079, 1350199064)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 47.82538390159607 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 23:18:31.943628
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/23/18/image_06042025_23_18_44_9828.jpg', 2), ('/home/nano/Desktop/images/06042025/23/18/image_06042025_23_18_34_9829.jpg', 2), ('/home/nano/Desktop/images/06042025/23/18/image_06042025_23_18_24_9839.jpg', 2), ('/home/nano/Desktop/images/06042025/23/18/image_06042025_23_18_14_10863.jpg', 2), ('/home/nano/Desktop/images/06042025/23/17/image_06042025_23_18_03_9836.jpg', 2), ('/home/nano/Desktop/images/06042025/23/17/image_06042025_23_17_53_9833.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/23/18/image_06042025_23_18_44_9828.jpg', '/home/nano/Desktop/images/06042025/23/18/image_06042025_23_18_34_9829.jpg', '/home/nano/Desktop/images/06042025/23/18/image_06042025_23_18_24_9839.jpg', '/home/nano/Desktop/images/06042025/23/18/image_06042025_23_18_14_10863.jpg', '/home/nano/Desktop/images/06042025/23/17/image_06042025_23_18_03_9836.jpg', '/home/nano/Desktop/images/06042025/23/17/image_06042025_23_17_53_9833.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/23/18/image_06042025_23_18_44_9828.jpg
/home/nano/Desktop/images/06042025/23/18/image_06042025_23_18_34_9829.jpg
/home/nano/Desktop/images/06042025/23/18/image_06042025_23_18_24_9839.jpg
/home/nano/Desktop/images/06042025/23/18/image_06042025_23_18_14_10863.jpg
/home/nano/Desktop/images/06042025/23/17/image_06042025_23_18_03_9836.jpg
/home/nano/Desktop/images/06042025/23/17/image_06042025_23_17_53_9833.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350199092","1350199089","1350199083","1350199086","1350199118","1350199100"],"photo_ids_order":["1350199083","1350199086","1350199089","1350199092","1350199100","1350199118"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c9f64c80ccfa6bca9a2eaaa52b1088b7.jpg","text":"TemporaryFile(/tmp/multipartBody7245577379882976189asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974374162,"filename":"image_06042025_23_18_14_10863.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/d2de8ca6229338e2c092d9ac7cf17173.jpg","text":"TemporaryFile(/tmp/multipartBody1607370200770717308asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974374162,"filename":"image_06042025_23_18_24_9839.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/2e7817d796f330f214d7efa50b8a03e3.jpg","text":"TemporaryFile(/tmp/multipartBody4311341486331820986asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974374162,"filename":"image_06042025_23_18_44_9828.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f6808e9bb284f93255de7d6ffd2ff901.jpg","text":"TemporaryFile(/tmp/multipartBody7036972963383985004asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974374162,"filename":"image_06042025_23_18_34_9829.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/95c85d527de25b1c9c222fec71e52eaf.jpg","text":"TemporaryFile(/tmp/multipartBody3465505654154291419asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974374162,"filename":"image_06042025_23_17_53_9833.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a0f69c1c017c420b1340268e9517ef7e.jpg","text":"TemporaryFile(/tmp/multipartBody332240227004063841asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974374162,"filename":"image_06042025_23_18_03_9836.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350199089","file1":"1350199086","file0":"1350199083","file4":"1350199100","file5":"1350199118","file3":"1350199092"},"map_files_photo_id_array":[{"photo_id":"1350199118","filename":"file5"},{"photo_id":"1350199089","filename":"file2"},{"photo_id":"1350199100","filename":"file4"},{"photo_id":"1350199086","filename":"file1"},{"photo_id":"1350199083","filename":"file0"},{"photo_id":"1350199092","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350199092":["hashtag1","hashtag2"]},{"1350199089":["hashtag1","hashtag2"]},{"1350199083":["hashtag1","hashtag2"]},{"1350199086":["hashtag1","hashtag2"]},{"1350199118":["hashtag1","hashtag2"]},{"1350199100":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350199092, 1350199089, 1350199083, 1350199086, 1350199118, 1350199100)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 54.94607639312744 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 23:19:32.047382
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/23/19/image_06042025_23_19_44_9831.jpg', 2), ('/home/nano/Desktop/images/06042025/23/19/image_06042025_23_19_34_9827.jpg', 2), ('/home/nano/Desktop/images/06042025/23/19/image_06042025_23_19_24_9829.jpg', 2), ('/home/nano/Desktop/images/06042025/23/19/image_06042025_23_19_14_10888.jpg', 2), ('/home/nano/Desktop/images/06042025/23/18/image_06042025_23_19_03_9830.jpg', 2), ('/home/nano/Desktop/images/06042025/23/18/image_06042025_23_18_53_9823.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/23/19/image_06042025_23_19_44_9831.jpg', '/home/nano/Desktop/images/06042025/23/19/image_06042025_23_19_34_9827.jpg', '/home/nano/Desktop/images/06042025/23/19/image_06042025_23_19_24_9829.jpg', '/home/nano/Desktop/images/06042025/23/19/image_06042025_23_19_14_10888.jpg', '/home/nano/Desktop/images/06042025/23/18/image_06042025_23_19_03_9830.jpg', '/home/nano/Desktop/images/06042025/23/18/image_06042025_23_18_53_9823.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/23/19/image_06042025_23_19_44_9831.jpg
/home/nano/Desktop/images/06042025/23/19/image_06042025_23_19_34_9827.jpg
/home/nano/Desktop/images/06042025/23/19/image_06042025_23_19_24_9829.jpg
/home/nano/Desktop/images/06042025/23/19/image_06042025_23_19_14_10888.jpg
/home/nano/Desktop/images/06042025/23/18/image_06042025_23_19_03_9830.jpg
/home/nano/Desktop/images/06042025/23/18/image_06042025_23_18_53_9823.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350199150","1350199135","1350199137","1350199160","1350199157","1350199139"],"photo_ids_order":["1350199135","1350199137","1350199139","1350199150","1350199157","1350199160"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b0fd9b808b4546afa345f8124ac8e074.jpg","text":"TemporaryFile(/tmp/multipartBody9209875131691432027asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974435399,"filename":"image_06042025_23_19_14_10888.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e3fc9e067be7f4f6ce4a22f1bb2dea7f.jpg","text":"TemporaryFile(/tmp/multipartBody2499474404265465298asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974435399,"filename":"image_06042025_23_19_44_9831.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/70bf705e46dc28f4e4851e6c5adb0421.jpg","text":"TemporaryFile(/tmp/multipartBody7875202547003430647asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974435399,"filename":"image_06042025_23_19_34_9827.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/9a165648562e7384fe575bdc63889a28.jpg","text":"TemporaryFile(/tmp/multipartBody5258814919796740677asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974435399,"filename":"image_06042025_23_18_53_9823.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/5c743d8e2f5cd47ae43868dcb546ec87.jpg","text":"TemporaryFile(/tmp/multipartBody6251258206089588627asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974435399,"filename":"image_06042025_23_19_03_9830.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/32f904e1e08991e0565c94230eea6dc6.jpg","text":"TemporaryFile(/tmp/multipartBody5567255589394167625asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974435399,"filename":"image_06042025_23_19_24_9829.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350199139","file1":"1350199137","file0":"1350199135","file4":"1350199157","file5":"1350199160","file3":"1350199150"},"map_files_photo_id_array":[{"photo_id":"1350199160","filename":"file5"},{"photo_id":"1350199139","filename":"file2"},{"photo_id":"1350199157","filename":"file4"},{"photo_id":"1350199137","filename":"file1"},{"photo_id":"1350199135","filename":"file0"},{"photo_id":"1350199150","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350199150":["hashtag1","hashtag2"]},{"1350199135":["hashtag1","hashtag2"]},{"1350199137":["hashtag1","hashtag2"]},{"1350199160":["hashtag1","hashtag2"]},{"1350199157":["hashtag1","hashtag2"]},{"1350199139":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350199150, 1350199135, 1350199137, 1350199160, 1350199157, 1350199139)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 36.04625225067139 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 23:20:32.150303
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/23/20/image_06042025_23_20_44_9831.jpg', 2), ('/home/nano/Desktop/images/06042025/23/20/image_06042025_23_20_34_9829.jpg', 2), ('/home/nano/Desktop/images/06042025/23/20/image_06042025_23_20_24_9831.jpg', 2), ('/home/nano/Desktop/images/06042025/23/20/image_06042025_23_20_14_10863.jpg', 2), ('/home/nano/Desktop/images/06042025/23/19/image_06042025_23_20_03_9871.jpg', 2), ('/home/nano/Desktop/images/06042025/23/19/image_06042025_23_19_53_9830.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/23/20/image_06042025_23_20_44_9831.jpg', '/home/nano/Desktop/images/06042025/23/20/image_06042025_23_20_34_9829.jpg', '/home/nano/Desktop/images/06042025/23/20/image_06042025_23_20_24_9831.jpg', '/home/nano/Desktop/images/06042025/23/20/image_06042025_23_20_14_10863.jpg', '/home/nano/Desktop/images/06042025/23/19/image_06042025_23_20_03_9871.jpg', '/home/nano/Desktop/images/06042025/23/19/image_06042025_23_19_53_9830.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/23/20/image_06042025_23_20_44_9831.jpg
/home/nano/Desktop/images/06042025/23/20/image_06042025_23_20_34_9829.jpg
/home/nano/Desktop/images/06042025/23/20/image_06042025_23_20_24_9831.jpg
/home/nano/Desktop/images/06042025/23/20/image_06042025_23_20_14_10863.jpg
/home/nano/Desktop/images/06042025/23/19/image_06042025_23_20_03_9871.jpg
/home/nano/Desktop/images/06042025/23/19/image_06042025_23_19_53_9830.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350199182","1350199218","1350199212","1350199199","1350199187","1350199196"],"photo_ids_order":["1350199182","1350199187","1350199196","1350199199","1350199212","1350199218"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4f7f7d9d64461be0b2a86223ee40cfa2.jpg","text":"TemporaryFile(/tmp/multipartBody1379336297557458697asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974494251,"filename":"image_06042025_23_20_44_9831.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ed490f75705a67ed966b9ddb3351f291.jpg","text":"TemporaryFile(/tmp/multipartBody8949561003096767512asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974494251,"filename":"image_06042025_23_19_53_9830.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e35a84adf7397a35b79599282d0d85f8.jpg","text":"TemporaryFile(/tmp/multipartBody2563105092889099292asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974494251,"filename":"image_06042025_23_20_03_9871.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/cb4dda9046adabfe3800d02858a6190c.jpg","text":"TemporaryFile(/tmp/multipartBody8325446709193548064asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974494251,"filename":"image_06042025_23_20_14_10863.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/8ea16fe5b0f9646b49e0e5961341b84b.jpg","text":"TemporaryFile(/tmp/multipartBody7619979148415790884asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974494251,"filename":"image_06042025_23_20_34_9829.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/3025f84f08eea580fb3a0833f7d9cab2.jpg","text":"TemporaryFile(/tmp/multipartBody8504083610313428543asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974494251,"filename":"image_06042025_23_20_24_9831.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350199196","file1":"1350199187","file0":"1350199182","file4":"1350199212","file5":"1350199218","file3":"1350199199"},"map_files_photo_id_array":[{"photo_id":"1350199218","filename":"file5"},{"photo_id":"1350199196","filename":"file2"},{"photo_id":"1350199212","filename":"file4"},{"photo_id":"1350199187","filename":"file1"},{"photo_id":"1350199182","filename":"file0"},{"photo_id":"1350199199","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350199182":["hashtag1","hashtag2"]},{"1350199218":["hashtag1","hashtag2"]},{"1350199212":["hashtag1","hashtag2"]},{"1350199199":["hashtag1","hashtag2"]},{"1350199187":["hashtag1","hashtag2"]},{"1350199196":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350199182, 1350199218, 1350199212, 1350199199, 1350199187, 1350199196)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.900975942611694 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 23:21:32.256483
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/23/21/image_06042025_23_21_44_9829.jpg', 2), ('/home/nano/Desktop/images/06042025/23/21/image_06042025_23_21_34_9851.jpg', 2), ('/home/nano/Desktop/images/06042025/23/21/image_06042025_23_21_24_9828.jpg', 2), ('/home/nano/Desktop/images/06042025/23/21/image_06042025_23_21_14_10868.jpg', 2), ('/home/nano/Desktop/images/06042025/23/20/image_06042025_23_21_03_9840.jpg', 2), ('/home/nano/Desktop/images/06042025/23/20/image_06042025_23_20_53_9832.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/23/21/image_06042025_23_21_44_9829.jpg', '/home/nano/Desktop/images/06042025/23/21/image_06042025_23_21_34_9851.jpg', '/home/nano/Desktop/images/06042025/23/21/image_06042025_23_21_24_9828.jpg', '/home/nano/Desktop/images/06042025/23/21/image_06042025_23_21_14_10868.jpg', '/home/nano/Desktop/images/06042025/23/20/image_06042025_23_21_03_9840.jpg', '/home/nano/Desktop/images/06042025/23/20/image_06042025_23_20_53_9832.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/23/21/image_06042025_23_21_44_9829.jpg
/home/nano/Desktop/images/06042025/23/21/image_06042025_23_21_34_9851.jpg
/home/nano/Desktop/images/06042025/23/21/image_06042025_23_21_24_9828.jpg
/home/nano/Desktop/images/06042025/23/21/image_06042025_23_21_14_10868.jpg
/home/nano/Desktop/images/06042025/23/20/image_06042025_23_21_03_9840.jpg
/home/nano/Desktop/images/06042025/23/20/image_06042025_23_20_53_9832.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350199245","1350199274","1350199268","1350199253","1350199250","1350199276"],"photo_ids_order":["1350199245","1350199250","1350199253","1350199268","1350199274","1350199276"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/6fdec3411cb780c82dd2c772e61d6249.jpg","text":"TemporaryFile(/tmp/multipartBody3491861571094445793asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974554343,"filename":"image_06042025_23_21_44_9829.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/aa12912cd3f95c92b9f74f87c0cc03a5.jpg","text":"TemporaryFile(/tmp/multipartBody626766785738765155asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974554343,"filename":"image_06042025_23_21_03_9840.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/42b62fd1a1e326b033db9649601a35c5.jpg","text":"TemporaryFile(/tmp/multipartBody4425790980498907904asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974554343,"filename":"image_06042025_23_21_14_10868.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/2af7913f51b2431f16d7aacbe27d4300.jpg","text":"TemporaryFile(/tmp/multipartBody5597551701405521084asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974554343,"filename":"image_06042025_23_21_24_9828.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/bc0b3e5aba7aa0124c3a391b10320387.jpg","text":"TemporaryFile(/tmp/multipartBody5290930643200469641asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974554343,"filename":"image_06042025_23_21_34_9851.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/2def544379cffe9ca2a508fa6962b55e.jpg","text":"TemporaryFile(/tmp/multipartBody4037343074783574349asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974554343,"filename":"image_06042025_23_20_53_9832.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350199253","file1":"1350199250","file0":"1350199245","file4":"1350199274","file5":"1350199276","file3":"1350199268"},"map_files_photo_id_array":[{"photo_id":"1350199276","filename":"file5"},{"photo_id":"1350199253","filename":"file2"},{"photo_id":"1350199274","filename":"file4"},{"photo_id":"1350199250","filename":"file1"},{"photo_id":"1350199245","filename":"file0"},{"photo_id":"1350199268","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350199245":["hashtag1","hashtag2"]},{"1350199274":["hashtag1","hashtag2"]},{"1350199268":["hashtag1","hashtag2"]},{"1350199253":["hashtag1","hashtag2"]},{"1350199250":["hashtag1","hashtag2"]},{"1350199276":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350199245, 1350199274, 1350199268, 1350199253, 1350199250, 1350199276)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 39.633456230163574 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 23:22:32.398005
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/23/22/image_06042025_23_22_44_9835.jpg', 2), ('/home/nano/Desktop/images/06042025/23/22/image_06042025_23_22_34_9831.jpg', 2), ('/home/nano/Desktop/images/06042025/23/22/image_06042025_23_22_24_10879.jpg', 2), ('/home/nano/Desktop/images/06042025/23/22/image_06042025_23_22_13_9857.jpg', 2), ('/home/nano/Desktop/images/06042025/23/21/image_06042025_23_22_03_9841.jpg', 2), ('/home/nano/Desktop/images/06042025/23/21/image_06042025_23_21_53_9827.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/23/22/image_06042025_23_22_44_9835.jpg', '/home/nano/Desktop/images/06042025/23/22/image_06042025_23_22_34_9831.jpg', '/home/nano/Desktop/images/06042025/23/22/image_06042025_23_22_24_10879.jpg', '/home/nano/Desktop/images/06042025/23/22/image_06042025_23_22_13_9857.jpg', '/home/nano/Desktop/images/06042025/23/21/image_06042025_23_22_03_9841.jpg', '/home/nano/Desktop/images/06042025/23/21/image_06042025_23_21_53_9827.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/23/22/image_06042025_23_22_44_9835.jpg
/home/nano/Desktop/images/06042025/23/22/image_06042025_23_22_34_9831.jpg
/home/nano/Desktop/images/06042025/23/22/image_06042025_23_22_24_10879.jpg
/home/nano/Desktop/images/06042025/23/22/image_06042025_23_22_13_9857.jpg
/home/nano/Desktop/images/06042025/23/21/image_06042025_23_22_03_9841.jpg
/home/nano/Desktop/images/06042025/23/21/image_06042025_23_21_53_9827.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350199291","1350199285","1350199296","1350199294","1350199288","1350199282"],"photo_ids_order":["1350199282","1350199285","1350199288","1350199291","1350199294","1350199296"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4692341b53ba6c2c94fc9ccac7a2e6c7.jpg","text":"TemporaryFile(/tmp/multipartBody1289251427266162987asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974614169,"filename":"image_06042025_23_22_13_9857.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/95c9f1bf74221555f3daa33fc90d9bb9.jpg","text":"TemporaryFile(/tmp/multipartBody6576954719349793558asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974614169,"filename":"image_06042025_23_22_34_9831.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/05cf59bb347508a6b4357b2b3ea1648b.jpg","text":"TemporaryFile(/tmp/multipartBody9078362388212589919asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974614169,"filename":"image_06042025_23_21_53_9827.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/0db762d39d2c00a4491d5aca738c84dd.jpg","text":"TemporaryFile(/tmp/multipartBody5246931866403663674asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974614169,"filename":"image_06042025_23_22_03_9841.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e9c2eccf2b17ad70a7ad3bad393f6c46.jpg","text":"TemporaryFile(/tmp/multipartBody76267341798017763asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974614169,"filename":"image_06042025_23_22_24_10879.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a8dd216ae7993072daa6269012c1bdcb.jpg","text":"TemporaryFile(/tmp/multipartBody5719958776559556868asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974614169,"filename":"image_06042025_23_22_44_9835.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350199288","file1":"1350199285","file0":"1350199282","file4":"1350199294","file5":"1350199296","file3":"1350199291"},"map_files_photo_id_array":[{"photo_id":"1350199296","filename":"file5"},{"photo_id":"1350199288","filename":"file2"},{"photo_id":"1350199294","filename":"file4"},{"photo_id":"1350199285","filename":"file1"},{"photo_id":"1350199282","filename":"file0"},{"photo_id":"1350199291","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350199291":["hashtag1","hashtag2"]},{"1350199285":["hashtag1","hashtag2"]},{"1350199296":["hashtag1","hashtag2"]},{"1350199294":["hashtag1","hashtag2"]},{"1350199288":["hashtag1","hashtag2"]},{"1350199282":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350199291, 1350199285, 1350199296, 1350199294, 1350199288, 1350199282)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.55142593383789 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 23:23:32.496161
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/23/23/image_06042025_23_23_44_9831.jpg', 2), ('/home/nano/Desktop/images/06042025/23/23/image_06042025_23_23_34_9833.jpg', 2), ('/home/nano/Desktop/images/06042025/23/23/image_06042025_23_23_24_10843.jpg', 2), ('/home/nano/Desktop/images/06042025/23/23/image_06042025_23_23_13_9852.jpg', 2), ('/home/nano/Desktop/images/06042025/23/22/image_06042025_23_23_03_9858.jpg', 2), ('/home/nano/Desktop/images/06042025/23/22/image_06042025_23_22_54_9830.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/23/23/image_06042025_23_23_44_9831.jpg', '/home/nano/Desktop/images/06042025/23/23/image_06042025_23_23_34_9833.jpg', '/home/nano/Desktop/images/06042025/23/23/image_06042025_23_23_24_10843.jpg', '/home/nano/Desktop/images/06042025/23/23/image_06042025_23_23_13_9852.jpg', '/home/nano/Desktop/images/06042025/23/22/image_06042025_23_23_03_9858.jpg', '/home/nano/Desktop/images/06042025/23/22/image_06042025_23_22_54_9830.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/23/23/image_06042025_23_23_44_9831.jpg
/home/nano/Desktop/images/06042025/23/23/image_06042025_23_23_34_9833.jpg
/home/nano/Desktop/images/06042025/23/23/image_06042025_23_23_24_10843.jpg
/home/nano/Desktop/images/06042025/23/23/image_06042025_23_23_13_9852.jpg
/home/nano/Desktop/images/06042025/23/22/image_06042025_23_23_03_9858.jpg
/home/nano/Desktop/images/06042025/23/22/image_06042025_23_22_54_9830.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 2.0650229454040527 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 23:24:03.482951
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/23/23/image_06042025_23_23_44_9831.jpg', 2), ('/home/nano/Desktop/images/06042025/23/23/image_06042025_23_23_34_9833.jpg', 2), ('/home/nano/Desktop/images/06042025/23/23/image_06042025_23_23_24_10843.jpg', 2), ('/home/nano/Desktop/images/06042025/23/23/image_06042025_23_23_13_9852.jpg', 2), ('/home/nano/Desktop/images/06042025/23/22/image_06042025_23_23_03_9858.jpg', 2), ('/home/nano/Desktop/images/06042025/23/22/image_06042025_23_22_54_9830.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/23/23/image_06042025_23_23_44_9831.jpg', '/home/nano/Desktop/images/06042025/23/23/image_06042025_23_23_34_9833.jpg', '/home/nano/Desktop/images/06042025/23/23/image_06042025_23_23_24_10843.jpg', '/home/nano/Desktop/images/06042025/23/23/image_06042025_23_23_13_9852.jpg', '/home/nano/Desktop/images/06042025/23/22/image_06042025_23_23_03_9858.jpg', '/home/nano/Desktop/images/06042025/23/22/image_06042025_23_22_54_9830.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/23/23/image_06042025_23_23_44_9831.jpg
/home/nano/Desktop/images/06042025/23/23/image_06042025_23_23_34_9833.jpg
/home/nano/Desktop/images/06042025/23/23/image_06042025_23_23_24_10843.jpg
/home/nano/Desktop/images/06042025/23/23/image_06042025_23_23_13_9852.jpg
/home/nano/Desktop/images/06042025/23/22/image_06042025_23_23_03_9858.jpg
/home/nano/Desktop/images/06042025/23/22/image_06042025_23_22_54_9830.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350199720","1350199596","1350199501","1350199425","1350199428","1350199820"],"photo_ids_order":["1350199425","1350199428","1350199501","1350199596","1350199720","1350199820"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/78e5714a487386b01e44b3ac2af6c6c2.jpg","text":"TemporaryFile(/tmp/multipartBody4031851779053104942asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974705813,"filename":"image_06042025_23_23_03_9858.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/38d02eb74e75eed2b4dbfd2369a201cf.jpg","text":"TemporaryFile(/tmp/multipartBody2142425086714781323asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974705813,"filename":"image_06042025_23_23_13_9852.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/5642a130a43b77494aafb0935c8cf053.jpg","text":"TemporaryFile(/tmp/multipartBody8297869759898426660asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974705813,"filename":"image_06042025_23_23_24_10843.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/74dfc15597e39afdd3c7ab717521ce6e.jpg","text":"TemporaryFile(/tmp/multipartBody1986364319753569708asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974705813,"filename":"image_06042025_23_23_44_9831.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f0957a248604dabda234e5e569e736e2.jpg","text":"TemporaryFile(/tmp/multipartBody7303622360977495194asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974705813,"filename":"image_06042025_23_23_34_9833.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/bd7572a2009a35fc688cc7c82cc88597.jpg","text":"TemporaryFile(/tmp/multipartBody6655719053560626543asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974705813,"filename":"image_06042025_23_22_54_9830.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350199501","file1":"1350199428","file0":"1350199425","file4":"1350199720","file5":"1350199820","file3":"1350199596"},"map_files_photo_id_array":[{"photo_id":"1350199820","filename":"file5"},{"photo_id":"1350199501","filename":"file2"},{"photo_id":"1350199720","filename":"file4"},{"photo_id":"1350199428","filename":"file1"},{"photo_id":"1350199425","filename":"file0"},{"photo_id":"1350199596","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350199720":["hashtag1","hashtag2"]},{"1350199596":["hashtag1","hashtag2"]},{"1350199501":["hashtag1","hashtag2"]},{"1350199425":["hashtag1","hashtag2"]},{"1350199428":["hashtag1","hashtag2"]},{"1350199820":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350199720, 1350199596, 1350199501, 1350199425, 1350199428, 1350199820)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.046308517456055 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 23:25:03.490067
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/23/24/image_06042025_23_24_44_9837.jpg', 2), ('/home/nano/Desktop/images/06042025/23/24/image_06042025_23_24_34_10843.jpg', 2), ('/home/nano/Desktop/images/06042025/23/24/image_06042025_23_24_23_9842.jpg', 2), ('/home/nano/Desktop/images/06042025/23/24/image_06042025_23_24_13_9871.jpg', 2), ('/home/nano/Desktop/images/06042025/23/23/image_06042025_23_24_03_9847.jpg', 2), ('/home/nano/Desktop/images/06042025/23/23/image_06042025_23_23_54_9831.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/23/24/image_06042025_23_24_44_9837.jpg', '/home/nano/Desktop/images/06042025/23/24/image_06042025_23_24_34_10843.jpg', '/home/nano/Desktop/images/06042025/23/24/image_06042025_23_24_23_9842.jpg', '/home/nano/Desktop/images/06042025/23/24/image_06042025_23_24_13_9871.jpg', '/home/nano/Desktop/images/06042025/23/23/image_06042025_23_24_03_9847.jpg', '/home/nano/Desktop/images/06042025/23/23/image_06042025_23_23_54_9831.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/23/24/image_06042025_23_24_44_9837.jpg
/home/nano/Desktop/images/06042025/23/24/image_06042025_23_24_34_10843.jpg
/home/nano/Desktop/images/06042025/23/24/image_06042025_23_24_23_9842.jpg
/home/nano/Desktop/images/06042025/23/24/image_06042025_23_24_13_9871.jpg
/home/nano/Desktop/images/06042025/23/23/image_06042025_23_24_03_9847.jpg
/home/nano/Desktop/images/06042025/23/23/image_06042025_23_23_54_9831.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350199945","1350199939","1350199942","1350199935","1350199940","1350199943"],"photo_ids_order":["1350199935","1350199939","1350199940","1350199942","1350199943","1350199945"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a0d82799d1b024ab743faa2d2e909ee3.jpg","text":"TemporaryFile(/tmp/multipartBody6079007485749754137asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974765454,"filename":"image_06042025_23_23_54_9831.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a96b5985894b0585883c9360be3af375.jpg","text":"TemporaryFile(/tmp/multipartBody1413308774522760804asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974765454,"filename":"image_06042025_23_24_34_10843.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/3c900c1916bc48e3bec9c315d2b54887.jpg","text":"TemporaryFile(/tmp/multipartBody1358168866691809121asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974765454,"filename":"image_06042025_23_24_13_9871.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/2dfc7c68d7df2a0efb4f8a804dfc1cc8.jpg","text":"TemporaryFile(/tmp/multipartBody2697784419821145005asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974765454,"filename":"image_06042025_23_24_44_9837.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/8d2b88dded9cfdc37190e83e1899e89a.jpg","text":"TemporaryFile(/tmp/multipartBody1462342431289691358asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974765454,"filename":"image_06042025_23_24_23_9842.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c7c894f728c21f291e0c8ff08a89226d.jpg","text":"TemporaryFile(/tmp/multipartBody921438498618252116asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974765454,"filename":"image_06042025_23_24_03_9847.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350199940","file1":"1350199939","file0":"1350199935","file4":"1350199943","file5":"1350199945","file3":"1350199942"},"map_files_photo_id_array":[{"photo_id":"1350199945","filename":"file5"},{"photo_id":"1350199940","filename":"file2"},{"photo_id":"1350199943","filename":"file4"},{"photo_id":"1350199939","filename":"file1"},{"photo_id":"1350199935","filename":"file0"},{"photo_id":"1350199942","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350199945":["hashtag1","hashtag2"]},{"1350199939":["hashtag1","hashtag2"]},{"1350199942":["hashtag1","hashtag2"]},{"1350199935":["hashtag1","hashtag2"]},{"1350199940":["hashtag1","hashtag2"]},{"1350199943":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350199945, 1350199939, 1350199942, 1350199935, 1350199940, 1350199943)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 42.063377380371094 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 23:26:02.328264
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/23/25/image_06042025_23_25_44_10658.jpg', 2), ('/home/nano/Desktop/images/06042025/23/25/image_06042025_23_25_33_9647.jpg', 2), ('/home/nano/Desktop/images/06042025/23/25/image_06042025_23_25_24_9649.jpg', 2), ('/home/nano/Desktop/images/06042025/23/24/image_06042025_23_25_03_9652.jpg', 2), ('/home/nano/Desktop/images/06042025/23/24/image_06042025_23_24_54_9716.jpg', 2), ('/home/nano/Desktop/images/06042025/23/11/image_06042025_23_11_24_9800.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/23/25/image_06042025_23_25_44_10658.jpg', '/home/nano/Desktop/images/06042025/23/25/image_06042025_23_25_33_9647.jpg', '/home/nano/Desktop/images/06042025/23/25/image_06042025_23_25_24_9649.jpg', '/home/nano/Desktop/images/06042025/23/24/image_06042025_23_25_03_9652.jpg', '/home/nano/Desktop/images/06042025/23/24/image_06042025_23_24_54_9716.jpg', '/home/nano/Desktop/images/06042025/23/11/image_06042025_23_11_24_9800.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/23/25/image_06042025_23_25_44_10658.jpg
/home/nano/Desktop/images/06042025/23/25/image_06042025_23_25_33_9647.jpg
/home/nano/Desktop/images/06042025/23/25/image_06042025_23_25_24_9649.jpg
/home/nano/Desktop/images/06042025/23/24/image_06042025_23_25_03_9652.jpg
/home/nano/Desktop/images/06042025/23/24/image_06042025_23_24_54_9716.jpg
/home/nano/Desktop/images/06042025/23/11/image_06042025_23_11_24_9800.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350200088","1350200109","1350200099","1350200111","1350200108","1350199991"],"photo_ids_order":["1350199991","1350200088","1350200099","1350200108","1350200109","1350200111"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/7335a2311724445f3c6d83dabb787fc5.jpg","text":"TemporaryFile(/tmp/multipartBody4788123586961943482asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974823966,"filename":"image_06042025_23_25_33_9647.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e760aebd15cdadb406084e45b9e6ffbf.jpg","text":"TemporaryFile(/tmp/multipartBody7408989995411408201asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974823966,"filename":"image_06042025_23_24_54_9716.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/994cfa66d4d08dd2b47a6d63b09cc1f6.jpg","text":"TemporaryFile(/tmp/multipartBody2260442799701905693asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974823966,"filename":"image_06042025_23_25_24_9649.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e334ff636afac312dc393c9c87925e08.jpg","text":"TemporaryFile(/tmp/multipartBody3943775429597598173asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974823966,"filename":"image_06042025_23_11_24_9800.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e781016905948d63fe17b73bdd6d969f.jpg","text":"TemporaryFile(/tmp/multipartBody7572696526935141179asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974823966,"filename":"image_06042025_23_25_03_9652.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a07e2f9488c800ce55094bf60d86faa8.jpg","text":"TemporaryFile(/tmp/multipartBody5066419691956159266asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974823966,"filename":"image_06042025_23_25_44_10658.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350200099","file1":"1350200088","file0":"1350199991","file4":"1350200109","file5":"1350200111","file3":"1350200108"},"map_files_photo_id_array":[{"photo_id":"1350200111","filename":"file5"},{"photo_id":"1350200099","filename":"file2"},{"photo_id":"1350200109","filename":"file4"},{"photo_id":"1350200088","filename":"file1"},{"photo_id":"1350199991","filename":"file0"},{"photo_id":"1350200108","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350200088":["hashtag1","hashtag2"]},{"1350200109":["hashtag1","hashtag2"]},{"1350200099":["hashtag1","hashtag2"]},{"1350200111":["hashtag1","hashtag2"]},{"1350200108":["hashtag1","hashtag2"]},{"1350199991":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350200088, 1350200109, 1350200099, 1350200111, 1350200108, 1350199991)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.27256917953491 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 23:27:02.542382
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/23/26/image_06042025_23_26_44_9648.jpg', 2), ('/home/nano/Desktop/images/06042025/23/26/image_06042025_23_26_34_10656.jpg', 2), ('/home/nano/Desktop/images/06042025/23/26/image_06042025_23_26_23_9663.jpg', 2), ('/home/nano/Desktop/images/06042025/23/26/image_06042025_23_26_14_10671.jpg', 2), ('/home/nano/Desktop/images/06042025/23/25/image_06042025_23_26_03_9659.jpg', 2), ('/home/nano/Desktop/images/06042025/23/25/image_06042025_23_25_54_9646.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/23/26/image_06042025_23_26_44_9648.jpg', '/home/nano/Desktop/images/06042025/23/26/image_06042025_23_26_34_10656.jpg', '/home/nano/Desktop/images/06042025/23/26/image_06042025_23_26_23_9663.jpg', '/home/nano/Desktop/images/06042025/23/26/image_06042025_23_26_14_10671.jpg', '/home/nano/Desktop/images/06042025/23/25/image_06042025_23_26_03_9659.jpg', '/home/nano/Desktop/images/06042025/23/25/image_06042025_23_25_54_9646.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/23/26/image_06042025_23_26_44_9648.jpg
/home/nano/Desktop/images/06042025/23/26/image_06042025_23_26_34_10656.jpg
/home/nano/Desktop/images/06042025/23/26/image_06042025_23_26_23_9663.jpg
/home/nano/Desktop/images/06042025/23/26/image_06042025_23_26_14_10671.jpg
/home/nano/Desktop/images/06042025/23/25/image_06042025_23_26_03_9659.jpg
/home/nano/Desktop/images/06042025/23/25/image_06042025_23_25_54_9646.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350200220","1350200217","1350200225","1350200222","1350200216","1350200218"],"photo_ids_order":["1350200216","1350200217","1350200218","1350200220","1350200222","1350200225"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/abf47bc8882003addc7571fce96e7319.jpg","text":"TemporaryFile(/tmp/multipartBody7722497888810053999asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974884527,"filename":"image_06042025_23_26_14_10671.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/99370056563f0aabac5ab4bd7ce8bd4f.jpg","text":"TemporaryFile(/tmp/multipartBody856533708892329199asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974884527,"filename":"image_06042025_23_26_34_10656.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/06e3b196ca69aae8e0b0aee6d22233ed.jpg","text":"TemporaryFile(/tmp/multipartBody4618771210112689874asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974884527,"filename":"image_06042025_23_25_54_9646.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a2fb247e97dadd6958ea4ec79579b81d.jpg","text":"TemporaryFile(/tmp/multipartBody7233708504212205712asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974884527,"filename":"image_06042025_23_26_03_9659.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/9f270cb5a404c1aab487aafef630e174.jpg","text":"TemporaryFile(/tmp/multipartBody8215383045583799225asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974884527,"filename":"image_06042025_23_26_44_9648.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4df07780a5038c60cc4598d73b9ce604.jpg","text":"TemporaryFile(/tmp/multipartBody327109629070496803asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974884527,"filename":"image_06042025_23_26_23_9663.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350200218","file1":"1350200217","file0":"1350200216","file4":"1350200222","file5":"1350200225","file3":"1350200220"},"map_files_photo_id_array":[{"photo_id":"1350200225","filename":"file5"},{"photo_id":"1350200218","filename":"file2"},{"photo_id":"1350200222","filename":"file4"},{"photo_id":"1350200217","filename":"file1"},{"photo_id":"1350200216","filename":"file0"},{"photo_id":"1350200220","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350200220":["hashtag1","hashtag2"]},{"1350200217":["hashtag1","hashtag2"]},{"1350200225":["hashtag1","hashtag2"]},{"1350200222":["hashtag1","hashtag2"]},{"1350200216":["hashtag1","hashtag2"]},{"1350200218":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350200220, 1350200217, 1350200225, 1350200222, 1350200216, 1350200218)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.405232191085815 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 23:28:02.410450
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/23/27/image_06042025_23_27_34_10659.jpg', 2), ('/home/nano/Desktop/images/06042025/23/27/image_06042025_23_27_23_9645.jpg', 2), ('/home/nano/Desktop/images/06042025/23/27/image_06042025_23_27_14_9666.jpg', 2), ('/home/nano/Desktop/images/06042025/23/26/image_06042025_23_27_04_10677.jpg', 2), ('/home/nano/Desktop/images/06042025/23/26/image_06042025_23_26_53_9647.jpg', 2), ('/home/nano/Desktop/images/06042025/23/11/image_06042025_23_11_14_10834.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/23/27/image_06042025_23_27_34_10659.jpg', '/home/nano/Desktop/images/06042025/23/27/image_06042025_23_27_23_9645.jpg', '/home/nano/Desktop/images/06042025/23/27/image_06042025_23_27_14_9666.jpg', '/home/nano/Desktop/images/06042025/23/26/image_06042025_23_27_04_10677.jpg', '/home/nano/Desktop/images/06042025/23/26/image_06042025_23_26_53_9647.jpg', '/home/nano/Desktop/images/06042025/23/11/image_06042025_23_11_14_10834.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/23/27/image_06042025_23_27_34_10659.jpg
/home/nano/Desktop/images/06042025/23/27/image_06042025_23_27_23_9645.jpg
/home/nano/Desktop/images/06042025/23/27/image_06042025_23_27_14_9666.jpg
/home/nano/Desktop/images/06042025/23/26/image_06042025_23_27_04_10677.jpg
/home/nano/Desktop/images/06042025/23/26/image_06042025_23_26_53_9647.jpg
/home/nano/Desktop/images/06042025/23/11/image_06042025_23_11_14_10834.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350200244","1350200247","1350200241","1350200243","1350200242","1350200245"],"photo_ids_order":["1350200241","1350200242","1350200243","1350200244","1350200245","1350200247"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/97ce0472834fadc1152359e90f66e892.jpg","text":"TemporaryFile(/tmp/multipartBody8559099255297327837asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974943981,"filename":"image_06042025_23_27_04_10677.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/5d663e573881e377dfa9f41388fe5fc3.jpg","text":"TemporaryFile(/tmp/multipartBody8152581060835565255asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974943981,"filename":"image_06042025_23_11_14_10834.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/8051b64cbc6b469b921dba51fffcd025.jpg","text":"TemporaryFile(/tmp/multipartBody5852878554017482266asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974943981,"filename":"image_06042025_23_27_34_10659.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/27d009ef36765779c6f42779eee06951.jpg","text":"TemporaryFile(/tmp/multipartBody4546733049381341199asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974943981,"filename":"image_06042025_23_27_14_9666.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/1670e565ba479aca073ec72f14f92727.jpg","text":"TemporaryFile(/tmp/multipartBody1752230131220710555asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974943981,"filename":"image_06042025_23_27_23_9645.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/3e3d20a79706f4f443b4638aed32e2a8.jpg","text":"TemporaryFile(/tmp/multipartBody8609977847499479290asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743974943981,"filename":"image_06042025_23_26_53_9647.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350200243","file1":"1350200242","file0":"1350200241","file4":"1350200245","file5":"1350200247","file3":"1350200244"},"map_files_photo_id_array":[{"photo_id":"1350200247","filename":"file5"},{"photo_id":"1350200243","filename":"file2"},{"photo_id":"1350200245","filename":"file4"},{"photo_id":"1350200242","filename":"file1"},{"photo_id":"1350200241","filename":"file0"},{"photo_id":"1350200244","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350200244":["hashtag1","hashtag2"]},{"1350200247":["hashtag1","hashtag2"]},{"1350200241":["hashtag1","hashtag2"]},{"1350200243":["hashtag1","hashtag2"]},{"1350200242":["hashtag1","hashtag2"]},{"1350200245":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350200244, 1350200247, 1350200241, 1350200243, 1350200242, 1350200245)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.685845136642456 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 23:29:03.142096
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/23/28/image_06042025_23_28_44_9651.jpg', 2), ('/home/nano/Desktop/images/06042025/23/28/image_06042025_23_28_34_10662.jpg', 2), ('/home/nano/Desktop/images/06042025/23/28/image_06042025_23_28_23_9651.jpg', 2), ('/home/nano/Desktop/images/06042025/23/28/image_06042025_23_28_14_9668.jpg', 2), ('/home/nano/Desktop/images/06042025/23/27/image_06042025_23_28_04_10658.jpg', 2), ('/home/nano/Desktop/images/06042025/23/27/image_06042025_23_27_53_9643.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/23/28/image_06042025_23_28_44_9651.jpg', '/home/nano/Desktop/images/06042025/23/28/image_06042025_23_28_34_10662.jpg', '/home/nano/Desktop/images/06042025/23/28/image_06042025_23_28_23_9651.jpg', '/home/nano/Desktop/images/06042025/23/28/image_06042025_23_28_14_9668.jpg', '/home/nano/Desktop/images/06042025/23/27/image_06042025_23_28_04_10658.jpg', '/home/nano/Desktop/images/06042025/23/27/image_06042025_23_27_53_9643.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/23/28/image_06042025_23_28_44_9651.jpg
/home/nano/Desktop/images/06042025/23/28/image_06042025_23_28_34_10662.jpg
/home/nano/Desktop/images/06042025/23/28/image_06042025_23_28_23_9651.jpg
/home/nano/Desktop/images/06042025/23/28/image_06042025_23_28_14_9668.jpg
/home/nano/Desktop/images/06042025/23/27/image_06042025_23_28_04_10658.jpg
/home/nano/Desktop/images/06042025/23/27/image_06042025_23_27_53_9643.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350200277","1350200271","1350200265","1350200267","1350200270","1350200275"],"photo_ids_order":["1350200265","1350200267","1350200270","1350200271","1350200275","1350200277"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/56d1371b36231dc601c683e8edc739a4.jpg","text":"TemporaryFile(/tmp/multipartBody6045360699831475351asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975004688,"filename":"image_06042025_23_27_53_9643.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/da8d6da4ecfb80ef84afa4d4ba30c746.jpg","text":"TemporaryFile(/tmp/multipartBody8079118813515729836asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975004688,"filename":"image_06042025_23_28_14_9668.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/2650d19ef9946b9f7269507fa4db0a52.jpg","text":"TemporaryFile(/tmp/multipartBody4534776467554718606asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975004688,"filename":"image_06042025_23_28_44_9651.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/9fd7f250aab1d373938bea58fc73d0cf.jpg","text":"TemporaryFile(/tmp/multipartBody3939890369715363858asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975004688,"filename":"image_06042025_23_28_34_10662.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f86352acb9243daf5e69520ead64a0c2.jpg","text":"TemporaryFile(/tmp/multipartBody1766757555082265601asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975004688,"filename":"image_06042025_23_28_23_9651.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b808830bd97733ff20974cb3abcd2b8e.jpg","text":"TemporaryFile(/tmp/multipartBody1866107128279962443asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975004688,"filename":"image_06042025_23_28_04_10658.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350200270","file1":"1350200267","file0":"1350200265","file4":"1350200275","file5":"1350200277","file3":"1350200271"},"map_files_photo_id_array":[{"photo_id":"1350200277","filename":"file5"},{"photo_id":"1350200270","filename":"file2"},{"photo_id":"1350200275","filename":"file4"},{"photo_id":"1350200267","filename":"file1"},{"photo_id":"1350200265","filename":"file0"},{"photo_id":"1350200271","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350200277":["hashtag1","hashtag2"]},{"1350200271":["hashtag1","hashtag2"]},{"1350200265":["hashtag1","hashtag2"]},{"1350200267":["hashtag1","hashtag2"]},{"1350200270":["hashtag1","hashtag2"]},{"1350200275":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350200277, 1350200271, 1350200265, 1350200267, 1350200270, 1350200275)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.04449415206909 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 23:30:02.758538
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/23/29/image_06042025_23_29_44_9807.jpg', 2), ('/home/nano/Desktop/images/06042025/23/29/image_06042025_23_29_34_9807.jpg', 2), ('/home/nano/Desktop/images/06042025/23/29/image_06042025_23_29_24_10813.jpg', 2), ('/home/nano/Desktop/images/06042025/23/29/image_06042025_23_29_13_9829.jpg', 2), ('/home/nano/Desktop/images/06042025/23/28/image_06042025_23_29_03_9815.jpg', 2), ('/home/nano/Desktop/images/06042025/23/28/image_06042025_23_28_54_9823.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/23/29/image_06042025_23_29_44_9807.jpg', '/home/nano/Desktop/images/06042025/23/29/image_06042025_23_29_34_9807.jpg', '/home/nano/Desktop/images/06042025/23/29/image_06042025_23_29_24_10813.jpg', '/home/nano/Desktop/images/06042025/23/29/image_06042025_23_29_13_9829.jpg', '/home/nano/Desktop/images/06042025/23/28/image_06042025_23_29_03_9815.jpg', '/home/nano/Desktop/images/06042025/23/28/image_06042025_23_28_54_9823.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/23/29/image_06042025_23_29_44_9807.jpg
/home/nano/Desktop/images/06042025/23/29/image_06042025_23_29_34_9807.jpg
/home/nano/Desktop/images/06042025/23/29/image_06042025_23_29_24_10813.jpg
/home/nano/Desktop/images/06042025/23/29/image_06042025_23_29_13_9829.jpg
/home/nano/Desktop/images/06042025/23/28/image_06042025_23_29_03_9815.jpg
/home/nano/Desktop/images/06042025/23/28/image_06042025_23_28_54_9823.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350200308","1350200294","1350200306","1350200300","1350200305","1350200295"],"photo_ids_order":["1350200294","1350200295","1350200300","1350200305","1350200306","1350200308"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/7777c8b9cd65a0858f305c5763029ebf.jpg","text":"TemporaryFile(/tmp/multipartBody910760485322470225asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975065026,"filename":"image_06042025_23_28_54_9823.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/95f43780d66c1f9f6e4695f5b8196ae3.jpg","text":"TemporaryFile(/tmp/multipartBody4108462888327003323asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975065026,"filename":"image_06042025_23_29_44_9807.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ad42261492c32ed43acab5500175a0d3.jpg","text":"TemporaryFile(/tmp/multipartBody4643549814029591134asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975065026,"filename":"image_06042025_23_29_03_9815.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/0921f4be6951260405df543e85b6ba50.jpg","text":"TemporaryFile(/tmp/multipartBody2859625300853156007asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975065026,"filename":"image_06042025_23_29_24_10813.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/29da9e86f806aa0f55d5886c9f6ad166.jpg","text":"TemporaryFile(/tmp/multipartBody7270726165396725945asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975065026,"filename":"image_06042025_23_29_13_9829.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a23f264060c5ea579b085e3be5b83829.jpg","text":"TemporaryFile(/tmp/multipartBody1517472988147552251asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975065026,"filename":"image_06042025_23_29_34_9807.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350200300","file1":"1350200295","file0":"1350200294","file4":"1350200306","file5":"1350200308","file3":"1350200305"},"map_files_photo_id_array":[{"photo_id":"1350200308","filename":"file5"},{"photo_id":"1350200300","filename":"file2"},{"photo_id":"1350200306","filename":"file4"},{"photo_id":"1350200295","filename":"file1"},{"photo_id":"1350200294","filename":"file0"},{"photo_id":"1350200305","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350200308":["hashtag1","hashtag2"]},{"1350200294":["hashtag1","hashtag2"]},{"1350200306":["hashtag1","hashtag2"]},{"1350200300":["hashtag1","hashtag2"]},{"1350200305":["hashtag1","hashtag2"]},{"1350200295":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350200308, 1350200294, 1350200306, 1350200300, 1350200305, 1350200295)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 36.84302806854248 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 23:31:02.995788
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/23/30/image_06042025_23_30_24_9760.jpg', 2), ('/home/nano/Desktop/images/06042025/23/30/image_06042025_23_30_14_10844.jpg', 2), ('/home/nano/Desktop/images/06042025/23/29/image_06042025_23_30_03_9825.jpg', 2), ('/home/nano/Desktop/images/06042025/23/29/image_06042025_23_29_53_9802.jpg', 2), ('/home/nano/Desktop/images/06042025/23/10/image_06042025_23_11_03_9845.jpg', 2), ('/home/nano/Desktop/images/06042025/23/10/image_06042025_23_10_53_9809.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/23/30/image_06042025_23_30_24_9760.jpg', '/home/nano/Desktop/images/06042025/23/30/image_06042025_23_30_14_10844.jpg', '/home/nano/Desktop/images/06042025/23/29/image_06042025_23_30_03_9825.jpg', '/home/nano/Desktop/images/06042025/23/29/image_06042025_23_29_53_9802.jpg', '/home/nano/Desktop/images/06042025/23/10/image_06042025_23_11_03_9845.jpg', '/home/nano/Desktop/images/06042025/23/10/image_06042025_23_10_53_9809.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/23/30/image_06042025_23_30_24_9760.jpg
/home/nano/Desktop/images/06042025/23/30/image_06042025_23_30_14_10844.jpg
/home/nano/Desktop/images/06042025/23/29/image_06042025_23_30_03_9825.jpg
/home/nano/Desktop/images/06042025/23/29/image_06042025_23_29_53_9802.jpg
/home/nano/Desktop/images/06042025/23/10/image_06042025_23_11_03_9845.jpg
/home/nano/Desktop/images/06042025/23/10/image_06042025_23_10_53_9809.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350200370","1350200367","1350200366","1350200447","1350200369","1350200426"],"photo_ids_order":["1350200366","1350200367","1350200369","1350200370","1350200426","1350200447"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/201e0eda4da67dd7ff015807204e0687.jpg","text":"TemporaryFile(/tmp/multipartBody5837089300656958522asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975124624,"filename":"image_06042025_23_29_53_9802.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/2dce829ad5a9999e2066d33d88e8157b.jpg","text":"TemporaryFile(/tmp/multipartBody8032392112018628619asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975124624,"filename":"image_06042025_23_30_14_10844.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/5e7716b38a86ee5a73aa1c4e2e8573d3.jpg","text":"TemporaryFile(/tmp/multipartBody6296273549985765699asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975124624,"filename":"image_06042025_23_30_24_9760.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/105523859d452f9ee4599602d82ca85d.jpg","text":"TemporaryFile(/tmp/multipartBody279715268986144118asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975124624,"filename":"image_06042025_23_10_53_9809.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/be69e766be323cfac1b5a57103eedfc8.jpg","text":"TemporaryFile(/tmp/multipartBody1160175342586595131asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975124624,"filename":"image_06042025_23_30_03_9825.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/8df11036b6ddd8d4bc79d05f94c4b49c.jpg","text":"TemporaryFile(/tmp/multipartBody7167908233842985862asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975124624,"filename":"image_06042025_23_11_03_9845.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350200369","file1":"1350200367","file0":"1350200366","file4":"1350200426","file5":"1350200447","file3":"1350200370"},"map_files_photo_id_array":[{"photo_id":"1350200447","filename":"file5"},{"photo_id":"1350200369","filename":"file2"},{"photo_id":"1350200426","filename":"file4"},{"photo_id":"1350200367","filename":"file1"},{"photo_id":"1350200366","filename":"file0"},{"photo_id":"1350200370","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350200370":["hashtag1","hashtag2"]},{"1350200367":["hashtag1","hashtag2"]},{"1350200366":["hashtag1","hashtag2"]},{"1350200447":["hashtag1","hashtag2"]},{"1350200369":["hashtag1","hashtag2"]},{"1350200426":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350200370, 1350200367, 1350200366, 1350200447, 1350200369, 1350200426)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.54479694366455 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 23:32:03.036930
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/23/31/image_06042025_23_31_43_9806.jpg', 2), ('/home/nano/Desktop/images/06042025/23/31/image_06042025_23_31_33_9806.jpg', 2), ('/home/nano/Desktop/images/06042025/23/31/image_06042025_23_31_24_9827.jpg', 2), ('/home/nano/Desktop/images/06042025/23/31/image_06042025_23_31_14_9869.jpg', 2), ('/home/nano/Desktop/images/06042025/23/30/image_06042025_23_31_04_9813.jpg', 2), ('/home/nano/Desktop/images/06042025/23/30/image_06042025_23_30_54_10766.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/23/31/image_06042025_23_31_43_9806.jpg', '/home/nano/Desktop/images/06042025/23/31/image_06042025_23_31_33_9806.jpg', '/home/nano/Desktop/images/06042025/23/31/image_06042025_23_31_24_9827.jpg', '/home/nano/Desktop/images/06042025/23/31/image_06042025_23_31_14_9869.jpg', '/home/nano/Desktop/images/06042025/23/30/image_06042025_23_31_04_9813.jpg', '/home/nano/Desktop/images/06042025/23/30/image_06042025_23_30_54_10766.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/23/31/image_06042025_23_31_43_9806.jpg
/home/nano/Desktop/images/06042025/23/31/image_06042025_23_31_33_9806.jpg
/home/nano/Desktop/images/06042025/23/31/image_06042025_23_31_24_9827.jpg
/home/nano/Desktop/images/06042025/23/31/image_06042025_23_31_14_9869.jpg
/home/nano/Desktop/images/06042025/23/30/image_06042025_23_31_04_9813.jpg
/home/nano/Desktop/images/06042025/23/30/image_06042025_23_30_54_10766.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350200526","1350200520","1350200489","1350200488","1350200548","1350200542"],"photo_ids_order":["1350200488","1350200489","1350200520","1350200526","1350200542","1350200548"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/2a98cc1a6d3ffff80f228ed4ba0cc5c9.jpg","text":"TemporaryFile(/tmp/multipartBody4340970381428406693asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975185067,"filename":"image_06042025_23_31_14_9869.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/d443794bb0e286128eb6b3576a7edc44.jpg","text":"TemporaryFile(/tmp/multipartBody3693504632373838219asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975185067,"filename":"image_06042025_23_31_24_9827.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/580b841d10561aad734d909692bdd4b1.jpg","text":"TemporaryFile(/tmp/multipartBody3430305848205358491asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975185067,"filename":"image_06042025_23_31_33_9806.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/2dcaca07f08940176f0ba058c494923f.jpg","text":"TemporaryFile(/tmp/multipartBody9182316938143078184asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975185067,"filename":"image_06042025_23_31_43_9806.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/5c9dd9638bd471e6f9ac1f6cdb3e18d9.jpg","text":"TemporaryFile(/tmp/multipartBody327409647841954782asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975185067,"filename":"image_06042025_23_30_54_10766.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e0197c9901663f03c0378069f9f338b8.jpg","text":"TemporaryFile(/tmp/multipartBody1935079425853551607asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975185067,"filename":"image_06042025_23_31_04_9813.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350200520","file1":"1350200489","file0":"1350200488","file4":"1350200542","file5":"1350200548","file3":"1350200526"},"map_files_photo_id_array":[{"photo_id":"1350200548","filename":"file5"},{"photo_id":"1350200520","filename":"file2"},{"photo_id":"1350200542","filename":"file4"},{"photo_id":"1350200489","filename":"file1"},{"photo_id":"1350200488","filename":"file0"},{"photo_id":"1350200526","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350200526":["hashtag1","hashtag2"]},{"1350200520":["hashtag1","hashtag2"]},{"1350200489":["hashtag1","hashtag2"]},{"1350200488":["hashtag1","hashtag2"]},{"1350200548":["hashtag1","hashtag2"]},{"1350200542":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350200526, 1350200520, 1350200489, 1350200488, 1350200548, 1350200542)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 39.15167570114136 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 23:33:02.984202
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/23/32/image_06042025_23_32_44_10815.jpg', 2), ('/home/nano/Desktop/images/06042025/23/32/image_06042025_23_32_33_9806.jpg', 2), ('/home/nano/Desktop/images/06042025/23/32/image_06042025_23_32_14_9834.jpg', 2), ('/home/nano/Desktop/images/06042025/23/31/image_06042025_23_32_04_9818.jpg', 2), ('/home/nano/Desktop/images/06042025/23/31/image_06042025_23_31_54_10814.jpg', 2), ('/home/nano/Desktop/images/06042025/22/58/image_06042025_22_58_34_10806.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/23/32/image_06042025_23_32_44_10815.jpg', '/home/nano/Desktop/images/06042025/23/32/image_06042025_23_32_33_9806.jpg', '/home/nano/Desktop/images/06042025/23/32/image_06042025_23_32_14_9834.jpg', '/home/nano/Desktop/images/06042025/23/31/image_06042025_23_32_04_9818.jpg', '/home/nano/Desktop/images/06042025/23/31/image_06042025_23_31_54_10814.jpg', '/home/nano/Desktop/images/06042025/22/58/image_06042025_22_58_34_10806.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/23/32/image_06042025_23_32_44_10815.jpg
/home/nano/Desktop/images/06042025/23/32/image_06042025_23_32_33_9806.jpg
/home/nano/Desktop/images/06042025/23/32/image_06042025_23_32_14_9834.jpg
/home/nano/Desktop/images/06042025/23/31/image_06042025_23_32_04_9818.jpg
/home/nano/Desktop/images/06042025/23/31/image_06042025_23_31_54_10814.jpg
/home/nano/Desktop/images/06042025/22/58/image_06042025_22_58_34_10806.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350200579","1350200570","1350200573","1350200576","1350200569","1350200572"],"photo_ids_order":["1350200569","1350200570","1350200572","1350200573","1350200576","1350200579"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/9f70ab4dc5e8c1655f168f02f829adfc.jpg","text":"TemporaryFile(/tmp/multipartBody1008284618603383466asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975245319,"filename":"image_06042025_22_58_34_10806.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/8813a11c7a2bbdbf0773bef056f434d9.jpg","text":"TemporaryFile(/tmp/multipartBody5766140974432676302asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975245319,"filename":"image_06042025_23_32_33_9806.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/64fef50ea29ec664c984b9cf1ea3539a.jpg","text":"TemporaryFile(/tmp/multipartBody3771707498018984519asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975245319,"filename":"image_06042025_23_32_04_9818.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f77b99f154e18530ff433f39962f2642.jpg","text":"TemporaryFile(/tmp/multipartBody8813351905834215851asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975245319,"filename":"image_06042025_23_31_54_10814.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/29e3d1f6436b550513f13fe1cc3f2998.jpg","text":"TemporaryFile(/tmp/multipartBody2891730240167883963asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975245319,"filename":"image_06042025_23_32_44_10815.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4f77e5d1c90ee59c70e768e01559e0bd.jpg","text":"TemporaryFile(/tmp/multipartBody7043323675582270207asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975245319,"filename":"image_06042025_23_32_14_9834.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350200572","file1":"1350200570","file0":"1350200569","file4":"1350200576","file5":"1350200579","file3":"1350200573"},"map_files_photo_id_array":[{"photo_id":"1350200579","filename":"file5"},{"photo_id":"1350200572","filename":"file2"},{"photo_id":"1350200576","filename":"file4"},{"photo_id":"1350200570","filename":"file1"},{"photo_id":"1350200569","filename":"file0"},{"photo_id":"1350200573","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350200579":["hashtag1","hashtag2"]},{"1350200570":["hashtag1","hashtag2"]},{"1350200573":["hashtag1","hashtag2"]},{"1350200576":["hashtag1","hashtag2"]},{"1350200569":["hashtag1","hashtag2"]},{"1350200572":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350200579, 1350200570, 1350200573, 1350200576, 1350200569, 1350200572)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 36.778727769851685 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 23:34:03.389906
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/23/33/image_06042025_23_33_44_10819.jpg', 2), ('/home/nano/Desktop/images/06042025/23/33/image_06042025_23_33_33_9834.jpg', 2), ('/home/nano/Desktop/images/06042025/23/33/image_06042025_23_33_23_9810.jpg', 2), ('/home/nano/Desktop/images/06042025/23/33/image_06042025_23_33_14_9830.jpg', 2), ('/home/nano/Desktop/images/06042025/23/32/image_06042025_23_33_04_9847.jpg', 2), ('/home/nano/Desktop/images/06042025/23/32/image_06042025_23_32_54_9805.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/23/33/image_06042025_23_33_44_10819.jpg', '/home/nano/Desktop/images/06042025/23/33/image_06042025_23_33_33_9834.jpg', '/home/nano/Desktop/images/06042025/23/33/image_06042025_23_33_23_9810.jpg', '/home/nano/Desktop/images/06042025/23/33/image_06042025_23_33_14_9830.jpg', '/home/nano/Desktop/images/06042025/23/32/image_06042025_23_33_04_9847.jpg', '/home/nano/Desktop/images/06042025/23/32/image_06042025_23_32_54_9805.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/23/33/image_06042025_23_33_44_10819.jpg
/home/nano/Desktop/images/06042025/23/33/image_06042025_23_33_33_9834.jpg
/home/nano/Desktop/images/06042025/23/33/image_06042025_23_33_23_9810.jpg
/home/nano/Desktop/images/06042025/23/33/image_06042025_23_33_14_9830.jpg
/home/nano/Desktop/images/06042025/23/32/image_06042025_23_33_04_9847.jpg
/home/nano/Desktop/images/06042025/23/32/image_06042025_23_32_54_9805.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350200643","1350200637","1350200639","1350200630","1350200638","1350200641"],"photo_ids_order":["1350200630","1350200637","1350200638","1350200639","1350200641","1350200643"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/7d531590dd69dd377bc968e7324be268.jpg","text":"TemporaryFile(/tmp/multipartBody6326969192439389936asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975305139,"filename":"image_06042025_23_32_54_9805.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/cce4f6ae1462dbed7371ef87d1af4e8f.jpg","text":"TemporaryFile(/tmp/multipartBody5070011252214622560asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975305139,"filename":"image_06042025_23_33_33_9834.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/709586b5b2c72073356c34b3f3a6bd81.jpg","text":"TemporaryFile(/tmp/multipartBody610133230433785811asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975305139,"filename":"image_06042025_23_33_14_9830.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/9d378e7bfb0cf8f3d4fb9acdbf54b3a0.jpg","text":"TemporaryFile(/tmp/multipartBody3462049023788744941asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975305139,"filename":"image_06042025_23_33_44_10819.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/da418e5cfd61a3dd0cfc3657c3576270.jpg","text":"TemporaryFile(/tmp/multipartBody315159485661962635asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975305139,"filename":"image_06042025_23_33_23_9810.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f8fc985d2ecbdca2069a041f889d242f.jpg","text":"TemporaryFile(/tmp/multipartBody8747588293132392634asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975305139,"filename":"image_06042025_23_33_04_9847.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350200638","file1":"1350200637","file0":"1350200630","file4":"1350200641","file5":"1350200643","file3":"1350200639"},"map_files_photo_id_array":[{"photo_id":"1350200643","filename":"file5"},{"photo_id":"1350200638","filename":"file2"},{"photo_id":"1350200641","filename":"file4"},{"photo_id":"1350200637","filename":"file1"},{"photo_id":"1350200630","filename":"file0"},{"photo_id":"1350200639","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350200643":["hashtag1","hashtag2"]},{"1350200637":["hashtag1","hashtag2"]},{"1350200639":["hashtag1","hashtag2"]},{"1350200630":["hashtag1","hashtag2"]},{"1350200638":["hashtag1","hashtag2"]},{"1350200641":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350200643, 1350200637, 1350200639, 1350200630, 1350200638, 1350200641)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 37.117549896240234 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 23:35:03.447344
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/23/34/image_06042025_23_34_44_10803.jpg', 2), ('/home/nano/Desktop/images/06042025/23/34/image_06042025_23_34_33_9816.jpg', 2), ('/home/nano/Desktop/images/06042025/23/34/image_06042025_23_34_23_9794.jpg', 2), ('/home/nano/Desktop/images/06042025/23/34/image_06042025_23_34_14_9810.jpg', 2), ('/home/nano/Desktop/images/06042025/23/33/image_06042025_23_34_04_9830.jpg', 2), ('/home/nano/Desktop/images/06042025/23/33/image_06042025_23_33_54_9810.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/23/34/image_06042025_23_34_44_10803.jpg', '/home/nano/Desktop/images/06042025/23/34/image_06042025_23_34_33_9816.jpg', '/home/nano/Desktop/images/06042025/23/34/image_06042025_23_34_23_9794.jpg', '/home/nano/Desktop/images/06042025/23/34/image_06042025_23_34_14_9810.jpg', '/home/nano/Desktop/images/06042025/23/33/image_06042025_23_34_04_9830.jpg', '/home/nano/Desktop/images/06042025/23/33/image_06042025_23_33_54_9810.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/23/34/image_06042025_23_34_44_10803.jpg
/home/nano/Desktop/images/06042025/23/34/image_06042025_23_34_33_9816.jpg
/home/nano/Desktop/images/06042025/23/34/image_06042025_23_34_23_9794.jpg
/home/nano/Desktop/images/06042025/23/34/image_06042025_23_34_14_9810.jpg
/home/nano/Desktop/images/06042025/23/33/image_06042025_23_34_04_9830.jpg
/home/nano/Desktop/images/06042025/23/33/image_06042025_23_33_54_9810.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350200682","1350200664","1350200684","1350200672","1350200675","1350200674"],"photo_ids_order":["1350200664","1350200672","1350200674","1350200675","1350200682","1350200684"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e2f0e72ae9a78d7614974598e82c4504.jpg","text":"TemporaryFile(/tmp/multipartBody1499027978013068497asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975365204,"filename":"image_06042025_23_34_04_9830.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/2b8b0f1e10ad6ed77a38537bfb498739.jpg","text":"TemporaryFile(/tmp/multipartBody6687941978714146237asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975365204,"filename":"image_06042025_23_34_44_10803.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/67ffd93b01bebb8b857b20c4e06bd826.jpg","text":"TemporaryFile(/tmp/multipartBody6432703624324956821asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975365204,"filename":"image_06042025_23_33_54_9810.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a8ce9942dcf3379c33862908acbda8ed.jpg","text":"TemporaryFile(/tmp/multipartBody8909113756891813639asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975365204,"filename":"image_06042025_23_34_33_9816.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/04a6cec3b34946ca6b3fc4d6f598a18b.jpg","text":"TemporaryFile(/tmp/multipartBody1885743676465298245asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975365204,"filename":"image_06042025_23_34_14_9810.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/35a7c6f3d2886faad2115fa996100c63.jpg","text":"TemporaryFile(/tmp/multipartBody8820111800350347389asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975365204,"filename":"image_06042025_23_34_23_9794.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350200674","file1":"1350200672","file0":"1350200664","file4":"1350200682","file5":"1350200684","file3":"1350200675"},"map_files_photo_id_array":[{"photo_id":"1350200684","filename":"file5"},{"photo_id":"1350200674","filename":"file2"},{"photo_id":"1350200682","filename":"file4"},{"photo_id":"1350200672","filename":"file1"},{"photo_id":"1350200664","filename":"file0"},{"photo_id":"1350200675","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350200682":["hashtag1","hashtag2"]},{"1350200664":["hashtag1","hashtag2"]},{"1350200684":["hashtag1","hashtag2"]},{"1350200672":["hashtag1","hashtag2"]},{"1350200675":["hashtag1","hashtag2"]},{"1350200674":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350200682, 1350200664, 1350200684, 1350200672, 1350200675, 1350200674)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.38766431808472 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 23:36:02.350610
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/23/35/image_06042025_23_35_44_9820.jpg', 2), ('/home/nano/Desktop/images/06042025/23/35/image_06042025_23_35_34_10830.jpg', 2), ('/home/nano/Desktop/images/06042025/23/35/image_06042025_23_35_23_9822.jpg', 2), ('/home/nano/Desktop/images/06042025/23/35/image_06042025_23_35_13_9850.jpg', 2), ('/home/nano/Desktop/images/06042025/23/34/image_06042025_23_35_04_9847.jpg', 2), ('/home/nano/Desktop/images/06042025/23/34/image_06042025_23_34_54_9823.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/23/35/image_06042025_23_35_44_9820.jpg', '/home/nano/Desktop/images/06042025/23/35/image_06042025_23_35_34_10830.jpg', '/home/nano/Desktop/images/06042025/23/35/image_06042025_23_35_23_9822.jpg', '/home/nano/Desktop/images/06042025/23/35/image_06042025_23_35_13_9850.jpg', '/home/nano/Desktop/images/06042025/23/34/image_06042025_23_35_04_9847.jpg', '/home/nano/Desktop/images/06042025/23/34/image_06042025_23_34_54_9823.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/23/35/image_06042025_23_35_44_9820.jpg
/home/nano/Desktop/images/06042025/23/35/image_06042025_23_35_34_10830.jpg
/home/nano/Desktop/images/06042025/23/35/image_06042025_23_35_23_9822.jpg
/home/nano/Desktop/images/06042025/23/35/image_06042025_23_35_13_9850.jpg
/home/nano/Desktop/images/06042025/23/34/image_06042025_23_35_04_9847.jpg
/home/nano/Desktop/images/06042025/23/34/image_06042025_23_34_54_9823.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350200721","1350200715","1350200718","1350200712","1350200714","1350200713"],"photo_ids_order":["1350200712","1350200713","1350200714","1350200715","1350200718","1350200721"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/bf70e2c09bc56681048c9339244da027.jpg","text":"TemporaryFile(/tmp/multipartBody1744650941445915604asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975424226,"filename":"image_06042025_23_34_54_9823.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/186c9116fa5c06dbf0e81fb41df021be.jpg","text":"TemporaryFile(/tmp/multipartBody291021194825717527asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975424226,"filename":"image_06042025_23_35_13_9850.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/1da2a7360cbffe519e687e1e9ff0a380.jpg","text":"TemporaryFile(/tmp/multipartBody433485944667269212asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975424226,"filename":"image_06042025_23_35_04_9847.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/2c686e40a3c75eca59a50805065c6e10.jpg","text":"TemporaryFile(/tmp/multipartBody469247005130422678asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975424226,"filename":"image_06042025_23_35_44_9820.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/7ed20201b5bb152e44d2bc4d5ab2dde3.jpg","text":"TemporaryFile(/tmp/multipartBody4441893669137437925asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975424226,"filename":"image_06042025_23_35_23_9822.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/2ef1ec62967b950d47196751f6344849.jpg","text":"TemporaryFile(/tmp/multipartBody4850221974811826039asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975424226,"filename":"image_06042025_23_35_34_10830.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350200714","file1":"1350200713","file0":"1350200712","file4":"1350200718","file5":"1350200721","file3":"1350200715"},"map_files_photo_id_array":[{"photo_id":"1350200721","filename":"file5"},{"photo_id":"1350200714","filename":"file2"},{"photo_id":"1350200718","filename":"file4"},{"photo_id":"1350200713","filename":"file1"},{"photo_id":"1350200712","filename":"file0"},{"photo_id":"1350200715","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350200721":["hashtag1","hashtag2"]},{"1350200715":["hashtag1","hashtag2"]},{"1350200718":["hashtag1","hashtag2"]},{"1350200712":["hashtag1","hashtag2"]},{"1350200714":["hashtag1","hashtag2"]},{"1350200713":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350200721, 1350200715, 1350200718, 1350200712, 1350200714, 1350200713)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 45.70164132118225 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 23:37:02.485237
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/23/36/image_06042025_23_36_44_9826.jpg', 2), ('/home/nano/Desktop/images/06042025/23/36/image_06042025_23_36_34_10830.jpg', 2), ('/home/nano/Desktop/images/06042025/23/36/image_06042025_23_36_23_9832.jpg', 2), ('/home/nano/Desktop/images/06042025/23/36/image_06042025_23_36_13_9846.jpg', 2), ('/home/nano/Desktop/images/06042025/23/35/image_06042025_23_36_04_9837.jpg', 2), ('/home/nano/Desktop/images/06042025/23/35/image_06042025_23_35_54_9822.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/23/36/image_06042025_23_36_44_9826.jpg', '/home/nano/Desktop/images/06042025/23/36/image_06042025_23_36_34_10830.jpg', '/home/nano/Desktop/images/06042025/23/36/image_06042025_23_36_23_9832.jpg', '/home/nano/Desktop/images/06042025/23/36/image_06042025_23_36_13_9846.jpg', '/home/nano/Desktop/images/06042025/23/35/image_06042025_23_36_04_9837.jpg', '/home/nano/Desktop/images/06042025/23/35/image_06042025_23_35_54_9822.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/23/36/image_06042025_23_36_44_9826.jpg
/home/nano/Desktop/images/06042025/23/36/image_06042025_23_36_34_10830.jpg
/home/nano/Desktop/images/06042025/23/36/image_06042025_23_36_23_9832.jpg
/home/nano/Desktop/images/06042025/23/36/image_06042025_23_36_13_9846.jpg
/home/nano/Desktop/images/06042025/23/35/image_06042025_23_36_04_9837.jpg
/home/nano/Desktop/images/06042025/23/35/image_06042025_23_35_54_9822.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350200733","1350200739","1350200741","1350200735","1350200743","1350200737"],"photo_ids_order":["1350200733","1350200735","1350200737","1350200739","1350200741","1350200743"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c7bc95f6e4bf2b740524879e856b588d.jpg","text":"TemporaryFile(/tmp/multipartBody5860471646159511216asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975484493,"filename":"image_06042025_23_36_44_9826.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/90e8d7e9e66423d4011a6092acdc343c.jpg","text":"TemporaryFile(/tmp/multipartBody956432223564676240asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975484493,"filename":"image_06042025_23_36_13_9846.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/6b68da3a657efdfb36fb1538ac320ef7.jpg","text":"TemporaryFile(/tmp/multipartBody2856433701490742129asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975484493,"filename":"image_06042025_23_36_04_9837.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f22a1705f29debb524ed0181fd2e267b.jpg","text":"TemporaryFile(/tmp/multipartBody5982928065740128870asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975484493,"filename":"image_06042025_23_36_34_10830.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ee67f93a35463ea5fe29e8f672bfd0bf.jpg","text":"TemporaryFile(/tmp/multipartBody218529016830003951asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975484493,"filename":"image_06042025_23_35_54_9822.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/66dfb25055013bfb454bc6c335c59c2b.jpg","text":"TemporaryFile(/tmp/multipartBody2229480050019918262asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975484493,"filename":"image_06042025_23_36_23_9832.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350200737","file1":"1350200735","file0":"1350200733","file4":"1350200741","file5":"1350200743","file3":"1350200739"},"map_files_photo_id_array":[{"photo_id":"1350200743","filename":"file5"},{"photo_id":"1350200737","filename":"file2"},{"photo_id":"1350200741","filename":"file4"},{"photo_id":"1350200735","filename":"file1"},{"photo_id":"1350200733","filename":"file0"},{"photo_id":"1350200739","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350200733":["hashtag1","hashtag2"]},{"1350200739":["hashtag1","hashtag2"]},{"1350200741":["hashtag1","hashtag2"]},{"1350200735":["hashtag1","hashtag2"]},{"1350200743":["hashtag1","hashtag2"]},{"1350200737":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350200733, 1350200739, 1350200741, 1350200735, 1350200743, 1350200737)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.136942863464355 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 23:38:02.395534
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/23/37/image_06042025_23_37_44_9632.jpg', 2), ('/home/nano/Desktop/images/06042025/23/37/image_06042025_23_37_23_9817.jpg', 2), ('/home/nano/Desktop/images/06042025/23/36/image_06042025_23_36_54_9846.jpg', 2), ('/home/nano/Desktop/images/06042025/22/58/image_06042025_22_58_23_9797.jpg', 2), ('/home/nano/Desktop/images/06042025/22/58/image_06042025_22_58_13_9819.jpg', 2), ('/home/nano/Desktop/images/06042025/22/57/image_06042025_22_58_04_9805.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/23/37/image_06042025_23_37_44_9632.jpg', '/home/nano/Desktop/images/06042025/23/37/image_06042025_23_37_23_9817.jpg', '/home/nano/Desktop/images/06042025/23/36/image_06042025_23_36_54_9846.jpg', '/home/nano/Desktop/images/06042025/22/58/image_06042025_22_58_23_9797.jpg', '/home/nano/Desktop/images/06042025/22/58/image_06042025_22_58_13_9819.jpg', '/home/nano/Desktop/images/06042025/22/57/image_06042025_22_58_04_9805.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/23/37/image_06042025_23_37_44_9632.jpg
/home/nano/Desktop/images/06042025/23/37/image_06042025_23_37_23_9817.jpg
/home/nano/Desktop/images/06042025/23/36/image_06042025_23_36_54_9846.jpg
/home/nano/Desktop/images/06042025/22/58/image_06042025_22_58_23_9797.jpg
/home/nano/Desktop/images/06042025/22/58/image_06042025_22_58_13_9819.jpg
/home/nano/Desktop/images/06042025/22/57/image_06042025_22_58_04_9805.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350200766","1350200763","1350200771","1350200765","1350200761","1350200758"],"photo_ids_order":["1350200758","1350200761","1350200763","1350200765","1350200766","1350200771"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/28ddf3c210be28cf4e9070befac9093b.jpg","text":"TemporaryFile(/tmp/multipartBody8027220351248128543asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975544396,"filename":"image_06042025_22_58_13_9819.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/2a5a0c3a6f0536a7707dd387b7edd65b.jpg","text":"TemporaryFile(/tmp/multipartBody2948137180955945640asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975544396,"filename":"image_06042025_23_36_54_9846.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/443e29114195d14781ccc4eb7bbf80c5.jpg","text":"TemporaryFile(/tmp/multipartBody2107076417640514258asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975544396,"filename":"image_06042025_22_58_04_9805.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/fa3ed79834e0992b0feb51d3814f30f6.jpg","text":"TemporaryFile(/tmp/multipartBody5885509054697822086asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975544396,"filename":"image_06042025_22_58_23_9797.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/8bf285e7c77ecc37b04179a58137ab2f.jpg","text":"TemporaryFile(/tmp/multipartBody7474783739182617975asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975544396,"filename":"image_06042025_23_37_23_9817.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/51df8a719b1e9b6d96d239e819bd3e40.jpg","text":"TemporaryFile(/tmp/multipartBody295009675624257876asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975544396,"filename":"image_06042025_23_37_44_9632.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350200763","file1":"1350200761","file0":"1350200758","file4":"1350200766","file5":"1350200771","file3":"1350200765"},"map_files_photo_id_array":[{"photo_id":"1350200771","filename":"file5"},{"photo_id":"1350200763","filename":"file2"},{"photo_id":"1350200766","filename":"file4"},{"photo_id":"1350200761","filename":"file1"},{"photo_id":"1350200758","filename":"file0"},{"photo_id":"1350200765","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350200766":["hashtag1","hashtag2"]},{"1350200763":["hashtag1","hashtag2"]},{"1350200771":["hashtag1","hashtag2"]},{"1350200765":["hashtag1","hashtag2"]},{"1350200761":["hashtag1","hashtag2"]},{"1350200758":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350200766, 1350200763, 1350200771, 1350200765, 1350200761, 1350200758)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.700966596603394 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 23:39:03.155339
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/23/38/image_06042025_23_38_44_9756.jpg', 2), ('/home/nano/Desktop/images/06042025/23/38/image_06042025_23_38_34_10644.jpg', 2), ('/home/nano/Desktop/images/06042025/23/38/image_06042025_23_38_23_9631.jpg', 2), ('/home/nano/Desktop/images/06042025/23/38/image_06042025_23_38_14_9652.jpg', 2), ('/home/nano/Desktop/images/06042025/23/37/image_06042025_23_38_04_10653.jpg', 2), ('/home/nano/Desktop/images/06042025/23/37/image_06042025_23_37_53_9632.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/23/38/image_06042025_23_38_44_9756.jpg', '/home/nano/Desktop/images/06042025/23/38/image_06042025_23_38_34_10644.jpg', '/home/nano/Desktop/images/06042025/23/38/image_06042025_23_38_23_9631.jpg', '/home/nano/Desktop/images/06042025/23/38/image_06042025_23_38_14_9652.jpg', '/home/nano/Desktop/images/06042025/23/37/image_06042025_23_38_04_10653.jpg', '/home/nano/Desktop/images/06042025/23/37/image_06042025_23_37_53_9632.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/23/38/image_06042025_23_38_44_9756.jpg
/home/nano/Desktop/images/06042025/23/38/image_06042025_23_38_34_10644.jpg
/home/nano/Desktop/images/06042025/23/38/image_06042025_23_38_23_9631.jpg
/home/nano/Desktop/images/06042025/23/38/image_06042025_23_38_14_9652.jpg
/home/nano/Desktop/images/06042025/23/37/image_06042025_23_38_04_10653.jpg
/home/nano/Desktop/images/06042025/23/37/image_06042025_23_37_53_9632.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350200850","1350200847","1350200835","1350200838","1350200821","1350200845"],"photo_ids_order":["1350200821","1350200835","1350200838","1350200845","1350200847","1350200850"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ed541c4d8b4bf714e25183cc32ac6f2f.jpg","text":"TemporaryFile(/tmp/multipartBody6425172859795476096asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975604780,"filename":"image_06042025_23_37_53_9632.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/146964c131b74d41e6fd3534ad96cd61.jpg","text":"TemporaryFile(/tmp/multipartBody6252895992396036454asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975604780,"filename":"image_06042025_23_38_04_10653.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/9314142c6e4e072b26bcedd742359637.jpg","text":"TemporaryFile(/tmp/multipartBody3358962031034342393asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975604780,"filename":"image_06042025_23_38_34_10644.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/bc8d13965de7ee87a12a203ce9306ebd.jpg","text":"TemporaryFile(/tmp/multipartBody5649954991477238923asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975604780,"filename":"image_06042025_23_38_23_9631.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/d561f8c0e80750c39ccb357223dfd9bf.jpg","text":"TemporaryFile(/tmp/multipartBody706385599859138765asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975604780,"filename":"image_06042025_23_38_44_9756.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a5684313d84b09af47ee236732ea48bc.jpg","text":"TemporaryFile(/tmp/multipartBody7072949508309174748asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975604780,"filename":"image_06042025_23_38_14_9652.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350200838","file1":"1350200835","file0":"1350200821","file4":"1350200847","file5":"1350200850","file3":"1350200845"},"map_files_photo_id_array":[{"photo_id":"1350200850","filename":"file5"},{"photo_id":"1350200838","filename":"file2"},{"photo_id":"1350200847","filename":"file4"},{"photo_id":"1350200835","filename":"file1"},{"photo_id":"1350200821","filename":"file0"},{"photo_id":"1350200845","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350200850":["hashtag1","hashtag2"]},{"1350200847":["hashtag1","hashtag2"]},{"1350200835":["hashtag1","hashtag2"]},{"1350200838":["hashtag1","hashtag2"]},{"1350200821":["hashtag1","hashtag2"]},{"1350200845":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350200850, 1350200847, 1350200835, 1350200838, 1350200821, 1350200845)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 38.55636215209961 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 23:40:02.599270
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/23/39/image_06042025_23_39_44_9639.jpg', 2), ('/home/nano/Desktop/images/06042025/23/39/image_06042025_23_39_23_9639.jpg', 2), ('/home/nano/Desktop/images/06042025/23/39/image_06042025_23_39_14_9660.jpg', 2), ('/home/nano/Desktop/images/06042025/23/38/image_06042025_23_39_04_10792.jpg', 2), ('/home/nano/Desktop/images/06042025/23/38/image_06042025_23_38_53_9753.jpg', 2), ('/home/nano/Desktop/images/06042025/22/57/image_06042025_22_57_54_9797.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/23/39/image_06042025_23_39_44_9639.jpg', '/home/nano/Desktop/images/06042025/23/39/image_06042025_23_39_23_9639.jpg', '/home/nano/Desktop/images/06042025/23/39/image_06042025_23_39_14_9660.jpg', '/home/nano/Desktop/images/06042025/23/38/image_06042025_23_39_04_10792.jpg', '/home/nano/Desktop/images/06042025/23/38/image_06042025_23_38_53_9753.jpg', '/home/nano/Desktop/images/06042025/22/57/image_06042025_22_57_54_9797.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/23/39/image_06042025_23_39_44_9639.jpg
/home/nano/Desktop/images/06042025/23/39/image_06042025_23_39_23_9639.jpg
/home/nano/Desktop/images/06042025/23/39/image_06042025_23_39_14_9660.jpg
/home/nano/Desktop/images/06042025/23/38/image_06042025_23_39_04_10792.jpg
/home/nano/Desktop/images/06042025/23/38/image_06042025_23_38_53_9753.jpg
/home/nano/Desktop/images/06042025/22/57/image_06042025_22_57_54_9797.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350200891","1350200888","1350200897","1350200893","1350200895","1350200889"],"photo_ids_order":["1350200888","1350200889","1350200891","1350200893","1350200895","1350200897"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/beace41b18f6bfee885235b2a98be1b7.jpg","text":"TemporaryFile(/tmp/multipartBody5570917811223906347asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975664056,"filename":"image_06042025_23_39_14_9660.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/d3b4255c35d9aba300a2dc7e6594a1f8.jpg","text":"TemporaryFile(/tmp/multipartBody2211527141058280053asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975664056,"filename":"image_06042025_23_39_44_9639.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/882d2f8a55c59bcc45e6afa116d1be32.jpg","text":"TemporaryFile(/tmp/multipartBody3467343415384264994asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975664056,"filename":"image_06042025_22_57_54_9797.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/0a619cdb301407d513851419ad84ebcd.jpg","text":"TemporaryFile(/tmp/multipartBody4953666348597964633asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975664056,"filename":"image_06042025_23_39_04_10792.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ed67e72bd4516d897c40bed5592fba36.jpg","text":"TemporaryFile(/tmp/multipartBody782756020652302834asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975664056,"filename":"image_06042025_23_38_53_9753.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a4be64d46a9fd7440cda1d4d6ce6356c.jpg","text":"TemporaryFile(/tmp/multipartBody6652713745711953478asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975664056,"filename":"image_06042025_23_39_23_9639.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350200891","file1":"1350200889","file0":"1350200888","file4":"1350200895","file5":"1350200897","file3":"1350200893"},"map_files_photo_id_array":[{"photo_id":"1350200897","filename":"file5"},{"photo_id":"1350200891","filename":"file2"},{"photo_id":"1350200895","filename":"file4"},{"photo_id":"1350200889","filename":"file1"},{"photo_id":"1350200888","filename":"file0"},{"photo_id":"1350200893","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350200891":["hashtag1","hashtag2"]},{"1350200888":["hashtag1","hashtag2"]},{"1350200897":["hashtag1","hashtag2"]},{"1350200893":["hashtag1","hashtag2"]},{"1350200895":["hashtag1","hashtag2"]},{"1350200889":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350200891, 1350200888, 1350200897, 1350200893, 1350200895, 1350200889)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.468738079071045 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 23:41:02.915567
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/23/40/image_06042025_23_40_34_10659.jpg', 2), ('/home/nano/Desktop/images/06042025/23/40/image_06042025_23_40_23_9670.jpg', 2), ('/home/nano/Desktop/images/06042025/23/39/image_06042025_23_40_04_10675.jpg', 2), ('/home/nano/Desktop/images/06042025/23/39/image_06042025_23_39_53_9665.jpg', 2), ('/home/nano/Desktop/images/06042025/19/48/image_06042025_19_48_14_10674.jpg', 2), ('/home/nano/Desktop/images/06042025/19/47/image_06042025_19_48_03_9658.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/23/40/image_06042025_23_40_34_10659.jpg', '/home/nano/Desktop/images/06042025/23/40/image_06042025_23_40_23_9670.jpg', '/home/nano/Desktop/images/06042025/23/39/image_06042025_23_40_04_10675.jpg', '/home/nano/Desktop/images/06042025/23/39/image_06042025_23_39_53_9665.jpg', '/home/nano/Desktop/images/06042025/19/48/image_06042025_19_48_14_10674.jpg', '/home/nano/Desktop/images/06042025/19/47/image_06042025_19_48_03_9658.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/23/40/image_06042025_23_40_34_10659.jpg
/home/nano/Desktop/images/06042025/23/40/image_06042025_23_40_23_9670.jpg
/home/nano/Desktop/images/06042025/23/39/image_06042025_23_40_04_10675.jpg
/home/nano/Desktop/images/06042025/23/39/image_06042025_23_39_53_9665.jpg
/home/nano/Desktop/images/06042025/19/48/image_06042025_19_48_14_10674.jpg
/home/nano/Desktop/images/06042025/19/47/image_06042025_19_48_03_9658.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350200931","1350200934","1350200927","1350200944","1350200932","1350200926"],"photo_ids_order":["1350200926","1350200927","1350200931","1350200932","1350200934","1350200944"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e56a7cf610d1a19a5b0c1c8c9082e085.jpg","text":"TemporaryFile(/tmp/multipartBody5820420655829615828asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975724401,"filename":"image_06042025_23_40_04_10675.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4e6b49b534fdaaddea0f0e379feaab3d.jpg","text":"TemporaryFile(/tmp/multipartBody7320247367693187993asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975724401,"filename":"image_06042025_19_48_14_10674.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a8c31878b12849fa07e30c35640dd80a.jpg","text":"TemporaryFile(/tmp/multipartBody8771463945594487130asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975724401,"filename":"image_06042025_23_40_23_9670.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/8fe43ddb5509094be44d8e1440aa3bff.jpg","text":"TemporaryFile(/tmp/multipartBody200954491646282071asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975724401,"filename":"image_06042025_19_48_03_9658.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/2c24780940db0f2b0c5d90fc89d7d3be.jpg","text":"TemporaryFile(/tmp/multipartBody1394604805712822840asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975724401,"filename":"image_06042025_23_39_53_9665.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/058e4509491a144285d95ed1e3ab4a3a.jpg","text":"TemporaryFile(/tmp/multipartBody2791286613220539687asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975724401,"filename":"image_06042025_23_40_34_10659.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350200931","file1":"1350200927","file0":"1350200926","file4":"1350200934","file5":"1350200944","file3":"1350200932"},"map_files_photo_id_array":[{"photo_id":"1350200944","filename":"file5"},{"photo_id":"1350200931","filename":"file2"},{"photo_id":"1350200934","filename":"file4"},{"photo_id":"1350200927","filename":"file1"},{"photo_id":"1350200926","filename":"file0"},{"photo_id":"1350200932","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350200931":["hashtag1","hashtag2"]},{"1350200934":["hashtag1","hashtag2"]},{"1350200927":["hashtag1","hashtag2"]},{"1350200944":["hashtag1","hashtag2"]},{"1350200932":["hashtag1","hashtag2"]},{"1350200926":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350200931, 1350200934, 1350200927, 1350200944, 1350200932, 1350200926)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 38.835875511169434 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 23:42:02.923651
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/23/41/image_06042025_23_41_44_9642.jpg', 2), ('/home/nano/Desktop/images/06042025/23/41/image_06042025_23_41_34_10652.jpg', 2), ('/home/nano/Desktop/images/06042025/23/41/image_06042025_23_41_23_9640.jpg', 2), ('/home/nano/Desktop/images/06042025/23/41/image_06042025_23_41_14_9666.jpg', 2), ('/home/nano/Desktop/images/06042025/23/40/image_06042025_23_41_04_10672.jpg', 2), ('/home/nano/Desktop/images/06042025/23/40/image_06042025_23_40_53_9647.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/23/41/image_06042025_23_41_44_9642.jpg', '/home/nano/Desktop/images/06042025/23/41/image_06042025_23_41_34_10652.jpg', '/home/nano/Desktop/images/06042025/23/41/image_06042025_23_41_23_9640.jpg', '/home/nano/Desktop/images/06042025/23/41/image_06042025_23_41_14_9666.jpg', '/home/nano/Desktop/images/06042025/23/40/image_06042025_23_41_04_10672.jpg', '/home/nano/Desktop/images/06042025/23/40/image_06042025_23_40_53_9647.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/23/41/image_06042025_23_41_44_9642.jpg
/home/nano/Desktop/images/06042025/23/41/image_06042025_23_41_34_10652.jpg
/home/nano/Desktop/images/06042025/23/41/image_06042025_23_41_23_9640.jpg
/home/nano/Desktop/images/06042025/23/41/image_06042025_23_41_14_9666.jpg
/home/nano/Desktop/images/06042025/23/40/image_06042025_23_41_04_10672.jpg
/home/nano/Desktop/images/06042025/23/40/image_06042025_23_40_53_9647.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350201054","1350201053","1350200990","1350200993","1350201064","1350201063"],"photo_ids_order":["1350200990","1350200993","1350201053","1350201054","1350201063","1350201064"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/05204b025918a58ca8906860d16a67d2.jpg","text":"TemporaryFile(/tmp/multipartBody5103973839199074134asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975784545,"filename":"image_06042025_23_41_14_9666.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/d2a352ae48e2b99967550a0c6c306035.jpg","text":"TemporaryFile(/tmp/multipartBody4730837760383110038asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975784545,"filename":"image_06042025_23_41_23_9640.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c65048d8d080b8deb46fdddbdfb20812.jpg","text":"TemporaryFile(/tmp/multipartBody3671472171468639041asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975784545,"filename":"image_06042025_23_41_44_9642.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f750c28244e036100afbf3903d92de46.jpg","text":"TemporaryFile(/tmp/multipartBody4290109236024988097asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975784545,"filename":"image_06042025_23_41_34_10652.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/915a0b943f4f33332ad36d359fa6a910.jpg","text":"TemporaryFile(/tmp/multipartBody10292181498004862asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975784545,"filename":"image_06042025_23_40_53_9647.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/290bda0c5e1f094d9e632facb37d05f0.jpg","text":"TemporaryFile(/tmp/multipartBody3240702509458005118asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975784545,"filename":"image_06042025_23_41_04_10672.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350201053","file1":"1350200993","file0":"1350200990","file4":"1350201063","file5":"1350201064","file3":"1350201054"},"map_files_photo_id_array":[{"photo_id":"1350201064","filename":"file5"},{"photo_id":"1350201053","filename":"file2"},{"photo_id":"1350201063","filename":"file4"},{"photo_id":"1350200993","filename":"file1"},{"photo_id":"1350200990","filename":"file0"},{"photo_id":"1350201054","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350201054":["hashtag1","hashtag2"]},{"1350201053":["hashtag1","hashtag2"]},{"1350200990":["hashtag1","hashtag2"]},{"1350200993":["hashtag1","hashtag2"]},{"1350201064":["hashtag1","hashtag2"]},{"1350201063":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350201054, 1350201053, 1350200990, 1350200993, 1350201064, 1350201063)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.42200446128845 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 23:43:03.131141
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/23/42/image_06042025_23_42_44_9640.jpg', 2), ('/home/nano/Desktop/images/06042025/23/42/image_06042025_23_42_34_10652.jpg', 2), ('/home/nano/Desktop/images/06042025/23/42/image_06042025_23_42_23_9642.jpg', 2), ('/home/nano/Desktop/images/06042025/23/42/image_06042025_23_42_14_9678.jpg', 2), ('/home/nano/Desktop/images/06042025/23/41/image_06042025_23_42_04_10666.jpg', 2), ('/home/nano/Desktop/images/06042025/23/41/image_06042025_23_41_53_9640.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/23/42/image_06042025_23_42_44_9640.jpg', '/home/nano/Desktop/images/06042025/23/42/image_06042025_23_42_34_10652.jpg', '/home/nano/Desktop/images/06042025/23/42/image_06042025_23_42_23_9642.jpg', '/home/nano/Desktop/images/06042025/23/42/image_06042025_23_42_14_9678.jpg', '/home/nano/Desktop/images/06042025/23/41/image_06042025_23_42_04_10666.jpg', '/home/nano/Desktop/images/06042025/23/41/image_06042025_23_41_53_9640.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/23/42/image_06042025_23_42_44_9640.jpg
/home/nano/Desktop/images/06042025/23/42/image_06042025_23_42_34_10652.jpg
/home/nano/Desktop/images/06042025/23/42/image_06042025_23_42_23_9642.jpg
/home/nano/Desktop/images/06042025/23/42/image_06042025_23_42_14_9678.jpg
/home/nano/Desktop/images/06042025/23/41/image_06042025_23_42_04_10666.jpg
/home/nano/Desktop/images/06042025/23/41/image_06042025_23_41_53_9640.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350201197","1350201194","1350201181","1350201195","1350201180","1350201177"],"photo_ids_order":["1350201177","1350201180","1350201181","1350201194","1350201195","1350201197"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/1366771ccf33bb465eb338a8c26b3387.jpg","text":"TemporaryFile(/tmp/multipartBody1501230547648534348asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975844528,"filename":"image_06042025_23_41_53_9640.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/5d83d2620a35dfcb0ba8b12f710b100f.jpg","text":"TemporaryFile(/tmp/multipartBody3628237525917745226asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975844528,"filename":"image_06042025_23_42_14_9678.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c8f73de022dbdf715ddafa22ebecd776.jpg","text":"TemporaryFile(/tmp/multipartBody477243035031944488asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975844528,"filename":"image_06042025_23_42_23_9642.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/abe8c390502ab0c82ea232321aa575b7.jpg","text":"TemporaryFile(/tmp/multipartBody6233328560549221697asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975844528,"filename":"image_06042025_23_42_04_10666.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/1268028eb320f3bbfcaa60dae7faac6f.jpg","text":"TemporaryFile(/tmp/multipartBody6059623261945202646asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975844528,"filename":"image_06042025_23_42_34_10652.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/428f42ef7bfb431d99a50b96f41f67cf.jpg","text":"TemporaryFile(/tmp/multipartBody8190866311406306868asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975844528,"filename":"image_06042025_23_42_44_9640.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350201181","file1":"1350201180","file0":"1350201177","file4":"1350201195","file5":"1350201197","file3":"1350201194"},"map_files_photo_id_array":[{"photo_id":"1350201197","filename":"file5"},{"photo_id":"1350201181","filename":"file2"},{"photo_id":"1350201195","filename":"file4"},{"photo_id":"1350201180","filename":"file1"},{"photo_id":"1350201177","filename":"file0"},{"photo_id":"1350201194","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350201197":["hashtag1","hashtag2"]},{"1350201194":["hashtag1","hashtag2"]},{"1350201181":["hashtag1","hashtag2"]},{"1350201195":["hashtag1","hashtag2"]},{"1350201180":["hashtag1","hashtag2"]},{"1350201177":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350201197, 1350201194, 1350201181, 1350201195, 1350201180, 1350201177)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.898062705993652 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 23:44:03.435250
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/23/43/image_06042025_23_43_43_9642.jpg', 2), ('/home/nano/Desktop/images/06042025/23/43/image_06042025_23_43_34_10650.jpg', 2), ('/home/nano/Desktop/images/06042025/23/43/image_06042025_23_43_23_9639.jpg', 2), ('/home/nano/Desktop/images/06042025/23/42/image_06042025_23_43_04_10670.jpg', 2), ('/home/nano/Desktop/images/06042025/23/42/image_06042025_23_42_53_9641.jpg', 2), ('/home/nano/Desktop/images/06042025/19/47/image_06042025_19_47_53_9649.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/23/43/image_06042025_23_43_43_9642.jpg', '/home/nano/Desktop/images/06042025/23/43/image_06042025_23_43_34_10650.jpg', '/home/nano/Desktop/images/06042025/23/43/image_06042025_23_43_23_9639.jpg', '/home/nano/Desktop/images/06042025/23/42/image_06042025_23_43_04_10670.jpg', '/home/nano/Desktop/images/06042025/23/42/image_06042025_23_42_53_9641.jpg', '/home/nano/Desktop/images/06042025/19/47/image_06042025_19_47_53_9649.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/23/43/image_06042025_23_43_43_9642.jpg
/home/nano/Desktop/images/06042025/23/43/image_06042025_23_43_34_10650.jpg
/home/nano/Desktop/images/06042025/23/43/image_06042025_23_43_23_9639.jpg
/home/nano/Desktop/images/06042025/23/42/image_06042025_23_43_04_10670.jpg
/home/nano/Desktop/images/06042025/23/42/image_06042025_23_42_53_9641.jpg
/home/nano/Desktop/images/06042025/19/47/image_06042025_19_47_53_9649.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 3.4347877502441406 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 23:44:32.527062
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/23/44/image_06042025_23_44_43_9643.jpg', 2), ('/home/nano/Desktop/images/06042025/23/44/image_06042025_23_44_34_9639.jpg', 2), ('/home/nano/Desktop/images/06042025/23/44/image_06042025_23_44_24_10661.jpg', 2), ('/home/nano/Desktop/images/06042025/23/43/image_06042025_23_44_04_9647.jpg', 2), ('/home/nano/Desktop/images/06042025/23/43/image_06042025_23_43_54_10650.jpg', 2), ('/home/nano/Desktop/images/06042025/23/43/image_06042025_23_43_43_9642.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/23/44/image_06042025_23_44_43_9643.jpg', '/home/nano/Desktop/images/06042025/23/44/image_06042025_23_44_34_9639.jpg', '/home/nano/Desktop/images/06042025/23/44/image_06042025_23_44_24_10661.jpg', '/home/nano/Desktop/images/06042025/23/43/image_06042025_23_44_04_9647.jpg', '/home/nano/Desktop/images/06042025/23/43/image_06042025_23_43_54_10650.jpg', '/home/nano/Desktop/images/06042025/23/43/image_06042025_23_43_43_9642.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/23/44/image_06042025_23_44_43_9643.jpg
/home/nano/Desktop/images/06042025/23/44/image_06042025_23_44_34_9639.jpg
/home/nano/Desktop/images/06042025/23/44/image_06042025_23_44_24_10661.jpg
/home/nano/Desktop/images/06042025/23/43/image_06042025_23_44_04_9647.jpg
/home/nano/Desktop/images/06042025/23/43/image_06042025_23_43_54_10650.jpg
/home/nano/Desktop/images/06042025/23/43/image_06042025_23_43_43_9642.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350201368","1350201361","1350201372","1350201366","1350201375","1350201363"],"photo_ids_order":["1350201361","1350201363","1350201366","1350201368","1350201372","1350201375"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ab0856253477b6ab3fdf0487a365539d.jpg","text":"TemporaryFile(/tmp/multipartBody8803868998599273401asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975934136,"filename":"image_06042025_23_44_04_9647.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4a46d2286371931053446fc1bded9b70.jpg","text":"TemporaryFile(/tmp/multipartBody3669066325886367823asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975934136,"filename":"image_06042025_23_44_43_9643.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f3d03b1b4f28dadb4f4c973a9621106f.jpg","text":"TemporaryFile(/tmp/multipartBody2264478237846268311asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975934136,"filename":"image_06042025_23_43_54_10650.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/6f0f0a2674bf728c489e608880d68317.jpg","text":"TemporaryFile(/tmp/multipartBody5920505461934077243asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975934136,"filename":"image_06042025_23_44_24_10661.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/6c8c4543cf3e3142c7e372dbb283c53e.jpg","text":"TemporaryFile(/tmp/multipartBody8736784608119235421asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975934136,"filename":"image_06042025_23_43_43_9642.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/57b45318e524c1839e356e30af98dd7c.jpg","text":"TemporaryFile(/tmp/multipartBody1488924050151999346asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975934136,"filename":"image_06042025_23_44_34_9639.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350201366","file1":"1350201363","file0":"1350201361","file4":"1350201372","file5":"1350201375","file3":"1350201368"},"map_files_photo_id_array":[{"photo_id":"1350201375","filename":"file5"},{"photo_id":"1350201366","filename":"file2"},{"photo_id":"1350201372","filename":"file4"},{"photo_id":"1350201363","filename":"file1"},{"photo_id":"1350201361","filename":"file0"},{"photo_id":"1350201368","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350201368":["hashtag1","hashtag2"]},{"1350201361":["hashtag1","hashtag2"]},{"1350201372":["hashtag1","hashtag2"]},{"1350201366":["hashtag1","hashtag2"]},{"1350201375":["hashtag1","hashtag2"]},{"1350201363":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350201368, 1350201361, 1350201372, 1350201366, 1350201375, 1350201363)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.711162090301514 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 23:45:32.639255
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/23/45/image_06042025_23_45_44_10816.jpg', 2), ('/home/nano/Desktop/images/06042025/23/45/image_06042025_23_45_33_9796.jpg', 2), ('/home/nano/Desktop/images/06042025/23/45/image_06042025_23_45_23_9805.jpg', 2), ('/home/nano/Desktop/images/06042025/23/44/image_06042025_23_45_04_9833.jpg', 2), ('/home/nano/Desktop/images/06042025/23/44/image_06042025_23_44_54_10651.jpg', 2), ('/home/nano/Desktop/images/06042025/23/43/image_06042025_23_43_34_10650.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/23/45/image_06042025_23_45_44_10816.jpg', '/home/nano/Desktop/images/06042025/23/45/image_06042025_23_45_33_9796.jpg', '/home/nano/Desktop/images/06042025/23/45/image_06042025_23_45_23_9805.jpg', '/home/nano/Desktop/images/06042025/23/44/image_06042025_23_45_04_9833.jpg', '/home/nano/Desktop/images/06042025/23/44/image_06042025_23_44_54_10651.jpg', '/home/nano/Desktop/images/06042025/23/43/image_06042025_23_43_34_10650.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/23/45/image_06042025_23_45_44_10816.jpg
/home/nano/Desktop/images/06042025/23/45/image_06042025_23_45_33_9796.jpg
/home/nano/Desktop/images/06042025/23/45/image_06042025_23_45_23_9805.jpg
/home/nano/Desktop/images/06042025/23/44/image_06042025_23_45_04_9833.jpg
/home/nano/Desktop/images/06042025/23/44/image_06042025_23_44_54_10651.jpg
/home/nano/Desktop/images/06042025/23/43/image_06042025_23_43_34_10650.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350201501","1350201422","1350201416","1350201419","1350201436","1350201498"],"photo_ids_order":["1350201416","1350201419","1350201422","1350201436","1350201498","1350201501"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/26d35a2a74362fcc3f3575fc7182d89b.jpg","text":"TemporaryFile(/tmp/multipartBody2927795800495224152asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975994578,"filename":"image_06042025_23_43_34_10650.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/be6c4672fdb8c31ef0d490b1613a6849.jpg","text":"TemporaryFile(/tmp/multipartBody562530441822242226asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975994578,"filename":"image_06042025_23_45_23_9805.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/7e5da521b931f6068868b4cd655afc23.jpg","text":"TemporaryFile(/tmp/multipartBody509961281757842841asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975994578,"filename":"image_06042025_23_45_44_10816.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/14bb65341a58f064aab9e631231acf9e.jpg","text":"TemporaryFile(/tmp/multipartBody6286714686876526037asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975994578,"filename":"image_06042025_23_45_33_9796.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f58ee7d3376d535a9fbf1425505f4730.jpg","text":"TemporaryFile(/tmp/multipartBody8654492349824116133asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975994578,"filename":"image_06042025_23_45_04_9833.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/d8f2465eaac822c1ef3c4a6012a454d9.jpg","text":"TemporaryFile(/tmp/multipartBody2619073810777150201asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743975994578,"filename":"image_06042025_23_44_54_10651.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350201422","file1":"1350201419","file0":"1350201416","file4":"1350201498","file5":"1350201501","file3":"1350201436"},"map_files_photo_id_array":[{"photo_id":"1350201501","filename":"file5"},{"photo_id":"1350201422","filename":"file2"},{"photo_id":"1350201498","filename":"file4"},{"photo_id":"1350201419","filename":"file1"},{"photo_id":"1350201416","filename":"file0"},{"photo_id":"1350201436","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350201501":["hashtag1","hashtag2"]},{"1350201422":["hashtag1","hashtag2"]},{"1350201416":["hashtag1","hashtag2"]},{"1350201419":["hashtag1","hashtag2"]},{"1350201436":["hashtag1","hashtag2"]},{"1350201498":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350201501, 1350201422, 1350201416, 1350201419, 1350201436, 1350201498)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.03130340576172 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 23:46:32.719425
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/23/46/image_06042025_23_46_24_10578.jpg', 2), ('/home/nano/Desktop/images/06042025/23/46/image_06042025_23_46_14_9821.jpg', 2), ('/home/nano/Desktop/images/06042025/23/45/image_06042025_23_46_04_9818.jpg', 2), ('/home/nano/Desktop/images/06042025/23/45/image_06042025_23_45_54_9802.jpg', 2), ('/home/nano/Desktop/images/06042025/23/43/image_06042025_23_43_23_9639.jpg', 2), ('/home/nano/Desktop/images/06042025/23/42/image_06042025_23_43_04_10670.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/23/46/image_06042025_23_46_24_10578.jpg', '/home/nano/Desktop/images/06042025/23/46/image_06042025_23_46_14_9821.jpg', '/home/nano/Desktop/images/06042025/23/45/image_06042025_23_46_04_9818.jpg', '/home/nano/Desktop/images/06042025/23/45/image_06042025_23_45_54_9802.jpg', '/home/nano/Desktop/images/06042025/23/43/image_06042025_23_43_23_9639.jpg', '/home/nano/Desktop/images/06042025/23/42/image_06042025_23_43_04_10670.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/23/46/image_06042025_23_46_24_10578.jpg
/home/nano/Desktop/images/06042025/23/46/image_06042025_23_46_14_9821.jpg
/home/nano/Desktop/images/06042025/23/45/image_06042025_23_46_04_9818.jpg
/home/nano/Desktop/images/06042025/23/45/image_06042025_23_45_54_9802.jpg
/home/nano/Desktop/images/06042025/23/43/image_06042025_23_43_23_9639.jpg
/home/nano/Desktop/images/06042025/23/42/image_06042025_23_43_04_10670.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350201632","1350201629","1350201652","1350201646","1350201625","1350201627"],"photo_ids_order":["1350201625","1350201627","1350201629","1350201632","1350201646","1350201652"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/d340bcf4558a45b075dcbe1c0caa47c4.jpg","text":"TemporaryFile(/tmp/multipartBody783446861165371279asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976054436,"filename":"image_06042025_23_45_54_9802.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b81a13e85295872aa62d5c9f03c8468c.jpg","text":"TemporaryFile(/tmp/multipartBody8461751821882229185asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976054436,"filename":"image_06042025_23_46_04_9818.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/fae6366358d330b0046a98d20e1196c3.jpg","text":"TemporaryFile(/tmp/multipartBody2563260484357932076asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976054436,"filename":"image_06042025_23_43_04_10670.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/23f1857984404aeaac251f87acd2478d.jpg","text":"TemporaryFile(/tmp/multipartBody7698615060943680182asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976054436,"filename":"image_06042025_23_43_23_9639.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/6b90131144d2a7aabadc2aabe5c5a6d5.jpg","text":"TemporaryFile(/tmp/multipartBody4952079299455316723asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976054436,"filename":"image_06042025_23_46_24_10578.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c1a54e06c5432923659008ad988bca44.jpg","text":"TemporaryFile(/tmp/multipartBody3340323953878660469asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976054436,"filename":"image_06042025_23_46_14_9821.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350201629","file1":"1350201627","file0":"1350201625","file4":"1350201646","file5":"1350201652","file3":"1350201632"},"map_files_photo_id_array":[{"photo_id":"1350201652","filename":"file5"},{"photo_id":"1350201629","filename":"file2"},{"photo_id":"1350201646","filename":"file4"},{"photo_id":"1350201627","filename":"file1"},{"photo_id":"1350201625","filename":"file0"},{"photo_id":"1350201632","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350201632":["hashtag1","hashtag2"]},{"1350201629":["hashtag1","hashtag2"]},{"1350201652":["hashtag1","hashtag2"]},{"1350201646":["hashtag1","hashtag2"]},{"1350201625":["hashtag1","hashtag2"]},{"1350201627":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350201632, 1350201629, 1350201652, 1350201646, 1350201625, 1350201627)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.32226610183716 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 23:47:31.845684
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/23/47/image_06042025_23_47_24_9565.jpg', 2), ('/home/nano/Desktop/images/06042025/23/47/image_06042025_23_47_14_10590.jpg', 2), ('/home/nano/Desktop/images/06042025/23/46/image_06042025_23_47_03_9580.jpg', 2), ('/home/nano/Desktop/images/06042025/23/46/image_06042025_23_46_54_10573.jpg', 2), ('/home/nano/Desktop/images/06042025/23/42/image_06042025_23_42_53_9641.jpg', 2), ('/home/nano/Desktop/images/06042025/19/47/image_06042025_19_47_53_9649.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/23/47/image_06042025_23_47_24_9565.jpg', '/home/nano/Desktop/images/06042025/23/47/image_06042025_23_47_14_10590.jpg', '/home/nano/Desktop/images/06042025/23/46/image_06042025_23_47_03_9580.jpg', '/home/nano/Desktop/images/06042025/23/46/image_06042025_23_46_54_10573.jpg', '/home/nano/Desktop/images/06042025/23/42/image_06042025_23_42_53_9641.jpg', '/home/nano/Desktop/images/06042025/19/47/image_06042025_19_47_53_9649.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/23/47/image_06042025_23_47_24_9565.jpg
/home/nano/Desktop/images/06042025/23/47/image_06042025_23_47_14_10590.jpg
/home/nano/Desktop/images/06042025/23/46/image_06042025_23_47_03_9580.jpg
/home/nano/Desktop/images/06042025/23/46/image_06042025_23_46_54_10573.jpg
/home/nano/Desktop/images/06042025/23/42/image_06042025_23_42_53_9641.jpg
/home/nano/Desktop/images/06042025/19/47/image_06042025_19_47_53_9649.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350201791","1350201788","1350201778","1350201820","1350201838","1350201811"],"photo_ids_order":["1350201778","1350201788","1350201791","1350201811","1350201820","1350201838"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/80890660d7695486b05ed60085307322.jpg","text":"TemporaryFile(/tmp/multipartBody4328494664912644196asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976113161,"filename":"image_06042025_23_47_03_9580.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/6e513e83b75e219a32d8f6a592136675.jpg","text":"TemporaryFile(/tmp/multipartBody8995069793959884689asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976113161,"filename":"image_06042025_23_47_14_10590.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ff51944f28267495d45442742efdcab3.jpg","text":"TemporaryFile(/tmp/multipartBody5023839146447615054asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976113161,"filename":"image_06042025_23_47_24_9565.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/dc421790857e691262ff0b7c1b588abc.jpg","text":"TemporaryFile(/tmp/multipartBody5270742198702614079asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976113161,"filename":"image_06042025_23_42_53_9641.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/fb3fc57a038d3417fceaf89d8e4aa833.jpg","text":"TemporaryFile(/tmp/multipartBody2858161162562216165asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976113161,"filename":"image_06042025_19_47_53_9649.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/90d0cf7fc7d45234997e3ef709ddd85f.jpg","text":"TemporaryFile(/tmp/multipartBody5250108271128410101asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976113161,"filename":"image_06042025_23_46_54_10573.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350201791","file1":"1350201788","file0":"1350201778","file4":"1350201820","file5":"1350201838","file3":"1350201811"},"map_files_photo_id_array":[{"photo_id":"1350201838","filename":"file5"},{"photo_id":"1350201791","filename":"file2"},{"photo_id":"1350201820","filename":"file4"},{"photo_id":"1350201788","filename":"file1"},{"photo_id":"1350201778","filename":"file0"},{"photo_id":"1350201811","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350201791":["hashtag1","hashtag2"]},{"1350201788":["hashtag1","hashtag2"]},{"1350201778":["hashtag1","hashtag2"]},{"1350201820":["hashtag1","hashtag2"]},{"1350201838":["hashtag1","hashtag2"]},{"1350201811":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350201791, 1350201788, 1350201778, 1350201820, 1350201838, 1350201811)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.90808606147766 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 23:48:31.927581
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/23/48/image_06042025_23_48_43_9567.jpg', 2), ('/home/nano/Desktop/images/06042025/23/48/image_06042025_23_48_24_10576.jpg', 2), ('/home/nano/Desktop/images/06042025/23/48/image_06042025_23_48_14_9604.jpg', 2), ('/home/nano/Desktop/images/06042025/23/47/image_06042025_23_48_04_10601.jpg', 2), ('/home/nano/Desktop/images/06042025/23/47/image_06042025_23_47_33_9566.jpg', 2), ('/home/nano/Desktop/images/06042025/19/47/image_06042025_19_47_44_10660.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/23/48/image_06042025_23_48_43_9567.jpg', '/home/nano/Desktop/images/06042025/23/48/image_06042025_23_48_24_10576.jpg', '/home/nano/Desktop/images/06042025/23/48/image_06042025_23_48_14_9604.jpg', '/home/nano/Desktop/images/06042025/23/47/image_06042025_23_48_04_10601.jpg', '/home/nano/Desktop/images/06042025/23/47/image_06042025_23_47_33_9566.jpg', '/home/nano/Desktop/images/06042025/19/47/image_06042025_19_47_44_10660.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/23/48/image_06042025_23_48_43_9567.jpg
/home/nano/Desktop/images/06042025/23/48/image_06042025_23_48_24_10576.jpg
/home/nano/Desktop/images/06042025/23/48/image_06042025_23_48_14_9604.jpg
/home/nano/Desktop/images/06042025/23/47/image_06042025_23_48_04_10601.jpg
/home/nano/Desktop/images/06042025/23/47/image_06042025_23_47_33_9566.jpg
/home/nano/Desktop/images/06042025/19/47/image_06042025_19_47_44_10660.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350201986","1350201988","1350201982","1350201991","1350201975","1350201978"],"photo_ids_order":["1350201975","1350201978","1350201982","1350201986","1350201988","1350201991"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/329edeeff750f57cf59ec78969149d8f.jpg","text":"TemporaryFile(/tmp/multipartBody3891570096882765284asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976172910,"filename":"image_06042025_23_48_04_10601.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/5d2e35e15001b4daa454b8336cf4d560.jpg","text":"TemporaryFile(/tmp/multipartBody3073559258154424194asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976172910,"filename":"image_06042025_23_47_33_9566.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b41a383b6d8546929335697158a6b561.jpg","text":"TemporaryFile(/tmp/multipartBody3216674158229430168asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976172910,"filename":"image_06042025_23_48_14_9604.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/0fbb2be7ad8a0c4cd84df35e4af446a8.jpg","text":"TemporaryFile(/tmp/multipartBody5657993877891468914asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976172910,"filename":"image_06042025_19_47_44_10660.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/5b3137491abcdf13d7b1458301e85cae.jpg","text":"TemporaryFile(/tmp/multipartBody4996209912502947636asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976172910,"filename":"image_06042025_23_48_43_9567.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/2f677c9efd215e8ac4db8b56cf0b91a8.jpg","text":"TemporaryFile(/tmp/multipartBody3906351332461199800asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976172910,"filename":"image_06042025_23_48_24_10576.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350201982","file1":"1350201978","file0":"1350201975","file4":"1350201988","file5":"1350201991","file3":"1350201986"},"map_files_photo_id_array":[{"photo_id":"1350201991","filename":"file5"},{"photo_id":"1350201982","filename":"file2"},{"photo_id":"1350201988","filename":"file4"},{"photo_id":"1350201978","filename":"file1"},{"photo_id":"1350201975","filename":"file0"},{"photo_id":"1350201986","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350201986":["hashtag1","hashtag2"]},{"1350201988":["hashtag1","hashtag2"]},{"1350201982":["hashtag1","hashtag2"]},{"1350201991":["hashtag1","hashtag2"]},{"1350201975":["hashtag1","hashtag2"]},{"1350201978":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350201986, 1350201988, 1350201982, 1350201991, 1350201975, 1350201978)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.0363404750824 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 23:49:32.038039
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/23/49/image_06042025_23_49_14_10595.jpg', 2), ('/home/nano/Desktop/images/06042025/23/48/image_06042025_23_49_03_9588.jpg', 2), ('/home/nano/Desktop/images/06042025/23/48/image_06042025_23_48_54_10577.jpg', 2), ('/home/nano/Desktop/images/06042025/19/47/image_06042025_19_47_33_9646.jpg', 2), ('/home/nano/Desktop/images/06042025/19/47/image_06042025_19_47_24_9669.jpg', 2), ('/home/nano/Desktop/images/06042025/19/47/image_06042025_19_47_14_10671.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/23/49/image_06042025_23_49_14_10595.jpg', '/home/nano/Desktop/images/06042025/23/48/image_06042025_23_49_03_9588.jpg', '/home/nano/Desktop/images/06042025/23/48/image_06042025_23_48_54_10577.jpg', '/home/nano/Desktop/images/06042025/19/47/image_06042025_19_47_33_9646.jpg', '/home/nano/Desktop/images/06042025/19/47/image_06042025_19_47_24_9669.jpg', '/home/nano/Desktop/images/06042025/19/47/image_06042025_19_47_14_10671.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/23/49/image_06042025_23_49_14_10595.jpg
/home/nano/Desktop/images/06042025/23/48/image_06042025_23_49_03_9588.jpg
/home/nano/Desktop/images/06042025/23/48/image_06042025_23_48_54_10577.jpg
/home/nano/Desktop/images/06042025/19/47/image_06042025_19_47_33_9646.jpg
/home/nano/Desktop/images/06042025/19/47/image_06042025_19_47_24_9669.jpg
/home/nano/Desktop/images/06042025/19/47/image_06042025_19_47_14_10671.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350202034","1350202037","1350202039","1350202048","1350202041","1350202044"],"photo_ids_order":["1350202034","1350202037","1350202039","1350202041","1350202044","1350202048"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/023a84a875ce8ac1499ea074761f67dc.jpg","text":"TemporaryFile(/tmp/multipartBody3183678218448574829asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976233110,"filename":"image_06042025_23_49_14_10595.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/67227a5e7330049fcb71808cb6abb872.jpg","text":"TemporaryFile(/tmp/multipartBody8695846680292844103asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976233110,"filename":"image_06042025_23_49_03_9588.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/6e8d077b51dec7d097a1129764f46327.jpg","text":"TemporaryFile(/tmp/multipartBody9070560230055274019asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976233110,"filename":"image_06042025_23_48_54_10577.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/8b7196c0f288d88e7034ccf055de8c7c.jpg","text":"TemporaryFile(/tmp/multipartBody7403781574077140412asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976233110,"filename":"image_06042025_19_47_14_10671.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/9466d07e087a7dab6c15088bcac4d84e.jpg","text":"TemporaryFile(/tmp/multipartBody982783333200484102asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976233110,"filename":"image_06042025_19_47_33_9646.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f19d375c868d9aee6c8cf7f17bbbce36.jpg","text":"TemporaryFile(/tmp/multipartBody1023712726512271040asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976233110,"filename":"image_06042025_19_47_24_9669.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350202039","file1":"1350202037","file0":"1350202034","file4":"1350202044","file5":"1350202048","file3":"1350202041"},"map_files_photo_id_array":[{"photo_id":"1350202048","filename":"file5"},{"photo_id":"1350202039","filename":"file2"},{"photo_id":"1350202044","filename":"file4"},{"photo_id":"1350202037","filename":"file1"},{"photo_id":"1350202034","filename":"file0"},{"photo_id":"1350202041","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350202034":["hashtag1","hashtag2"]},{"1350202037":["hashtag1","hashtag2"]},{"1350202039":["hashtag1","hashtag2"]},{"1350202048":["hashtag1","hashtag2"]},{"1350202041":["hashtag1","hashtag2"]},{"1350202044":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350202034, 1350202037, 1350202039, 1350202048, 1350202041, 1350202044)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.79405498504639 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --last_days 20 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 23:50:32.130371
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/23/50/image_06042025_23_50_34_9565.jpg', 2), ('/home/nano/Desktop/images/06042025/23/49/image_06042025_23_49_24_9564.jpg', 2), ('/home/nano/Desktop/images/06042025/19/46/image_06042025_19_47_03_9652.jpg', 2), ('/home/nano/Desktop/images/06042025/19/46/image_06042025_19_46_54_9655.jpg', 2), ('/home/nano/Desktop/images/06042025/19/46/image_06042025_19_46_44_10652.jpg', 2), ('/home/nano/Desktop/images/06042025/19/46/image_06042025_19_46_33_9658.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/23/50/image_06042025_23_50_34_9565.jpg', '/home/nano/Desktop/images/06042025/23/49/image_06042025_23_49_24_9564.jpg', '/home/nano/Desktop/images/06042025/19/46/image_06042025_19_47_03_9652.jpg', '/home/nano/Desktop/images/06042025/19/46/image_06042025_19_46_54_9655.jpg', '/home/nano/Desktop/images/06042025/19/46/image_06042025_19_46_44_10652.jpg', '/home/nano/Desktop/images/06042025/19/46/image_06042025_19_46_33_9658.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/23/50/image_06042025_23_50_34_9565.jpg
/home/nano/Desktop/images/06042025/23/49/image_06042025_23_49_24_9564.jpg
/home/nano/Desktop/images/06042025/19/46/image_06042025_19_47_03_9652.jpg
/home/nano/Desktop/images/06042025/19/46/image_06042025_19_46_54_9655.jpg
/home/nano/Desktop/images/06042025/19/46/image_06042025_19_46_44_10652.jpg
/home/nano/Desktop/images/06042025/19/46/image_06042025_19_46_33_9658.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 1.411473274230957 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 23:51:03.030636
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/23/50/image_06042025_23_50_34_9565.jpg', 2), ('/home/nano/Desktop/images/06042025/23/49/image_06042025_23_49_24_9564.jpg', 2), ('/home/nano/Desktop/images/06042025/19/46/image_06042025_19_47_03_9652.jpg', 2), ('/home/nano/Desktop/images/06042025/19/46/image_06042025_19_46_54_9655.jpg', 2), ('/home/nano/Desktop/images/06042025/19/46/image_06042025_19_46_44_10652.jpg', 2), ('/home/nano/Desktop/images/06042025/19/46/image_06042025_19_46_33_9658.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/23/50/image_06042025_23_50_34_9565.jpg', '/home/nano/Desktop/images/06042025/23/49/image_06042025_23_49_24_9564.jpg', '/home/nano/Desktop/images/06042025/19/46/image_06042025_19_47_03_9652.jpg', '/home/nano/Desktop/images/06042025/19/46/image_06042025_19_46_54_9655.jpg', '/home/nano/Desktop/images/06042025/19/46/image_06042025_19_46_44_10652.jpg', '/home/nano/Desktop/images/06042025/19/46/image_06042025_19_46_33_9658.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/23/50/image_06042025_23_50_34_9565.jpg
/home/nano/Desktop/images/06042025/23/49/image_06042025_23_49_24_9564.jpg
/home/nano/Desktop/images/06042025/19/46/image_06042025_19_47_03_9652.jpg
/home/nano/Desktop/images/06042025/19/46/image_06042025_19_46_54_9655.jpg
/home/nano/Desktop/images/06042025/19/46/image_06042025_19_46_44_10652.jpg
/home/nano/Desktop/images/06042025/19/46/image_06042025_19_46_33_9658.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350202145","1350202139","1350202141","1350202144","1350202143","1350202137"],"photo_ids_order":["1350202137","1350202139","1350202141","1350202143","1350202144","1350202145"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/d85509e792e408846371b9424ff44f3c.jpg","text":"TemporaryFile(/tmp/multipartBody232818945650161791asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976324524,"filename":"image_06042025_19_46_33_9658.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/be79ca724e141eb557ae0662fc83e4c5.jpg","text":"TemporaryFile(/tmp/multipartBody6003686073028070009asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976324524,"filename":"image_06042025_23_49_24_9564.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b3501f34791618e7bdb0d5e984876172.jpg","text":"TemporaryFile(/tmp/multipartBody6677250810739073595asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976324524,"filename":"image_06042025_19_47_03_9652.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4c3170db9acbe3c36650105d834c355b.jpg","text":"TemporaryFile(/tmp/multipartBody7744025106141353892asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976324524,"filename":"image_06042025_19_46_44_10652.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/cf4a9227e56ae33868e98f6e0940429b.jpg","text":"TemporaryFile(/tmp/multipartBody3651114514821483317asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976324524,"filename":"image_06042025_19_46_54_9655.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/7262c14d9add01e226874c294c6315d6.jpg","text":"TemporaryFile(/tmp/multipartBody4483828294984520319asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976324524,"filename":"image_06042025_23_50_34_9565.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350202141","file1":"1350202139","file0":"1350202137","file4":"1350202144","file5":"1350202145","file3":"1350202143"},"map_files_photo_id_array":[{"photo_id":"1350202145","filename":"file5"},{"photo_id":"1350202141","filename":"file2"},{"photo_id":"1350202144","filename":"file4"},{"photo_id":"1350202139","filename":"file1"},{"photo_id":"1350202137","filename":"file0"},{"photo_id":"1350202143","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350202145":["hashtag1","hashtag2"]},{"1350202139":["hashtag1","hashtag2"]},{"1350202141":["hashtag1","hashtag2"]},{"1350202144":["hashtag1","hashtag2"]},{"1350202143":["hashtag1","hashtag2"]},{"1350202137":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350202145, 1350202139, 1350202141, 1350202144, 1350202143, 1350202137)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.192898750305176 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 23:52:02.934440
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/23/51/image_06042025_23_51_44_9567.jpg', 2), ('/home/nano/Desktop/images/06042025/23/50/image_06042025_23_50_44_10578.jpg', 2), ('/home/nano/Desktop/images/06042025/19/46/image_06042025_19_46_24_9640.jpg', 2), ('/home/nano/Desktop/images/06042025/19/46/image_06042025_19_46_14_10667.jpg', 2), ('/home/nano/Desktop/images/06042025/19/45/image_06042025_19_46_03_9641.jpg', 2), ('/home/nano/Desktop/images/06042025/19/45/image_06042025_19_45_54_9645.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/23/51/image_06042025_23_51_44_9567.jpg', '/home/nano/Desktop/images/06042025/23/50/image_06042025_23_50_44_10578.jpg', '/home/nano/Desktop/images/06042025/19/46/image_06042025_19_46_24_9640.jpg', '/home/nano/Desktop/images/06042025/19/46/image_06042025_19_46_14_10667.jpg', '/home/nano/Desktop/images/06042025/19/45/image_06042025_19_46_03_9641.jpg', '/home/nano/Desktop/images/06042025/19/45/image_06042025_19_45_54_9645.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/23/51/image_06042025_23_51_44_9567.jpg
/home/nano/Desktop/images/06042025/23/50/image_06042025_23_50_44_10578.jpg
/home/nano/Desktop/images/06042025/19/46/image_06042025_19_46_24_9640.jpg
/home/nano/Desktop/images/06042025/19/46/image_06042025_19_46_14_10667.jpg
/home/nano/Desktop/images/06042025/19/45/image_06042025_19_46_03_9641.jpg
/home/nano/Desktop/images/06042025/19/45/image_06042025_19_45_54_9645.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350202511","1350202593","1350202587","1350202662","1350202572","1350202566"],"photo_ids_order":["1350202511","1350202566","1350202572","1350202587","1350202593","1350202662"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/3ebc24c92c670253432cdf253fa2c196.jpg","text":"TemporaryFile(/tmp/multipartBody6442001132526361358asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976383913,"filename":"image_06042025_23_51_44_9567.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/021e5072d72c97a53949c0992b07f294.jpg","text":"TemporaryFile(/tmp/multipartBody7363625598233426195asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976383913,"filename":"image_06042025_19_46_03_9641.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ec8a8675d0d29e8a7ada9191055b5bf0.jpg","text":"TemporaryFile(/tmp/multipartBody8645611929271584148asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976383913,"filename":"image_06042025_19_46_14_10667.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/d2922bee5b115dc33b52a5ae68080be4.jpg","text":"TemporaryFile(/tmp/multipartBody7834222468569181408asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976383913,"filename":"image_06042025_19_45_54_9645.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/552c5774e4f256c52548d31eda622285.jpg","text":"TemporaryFile(/tmp/multipartBody821355913891701818asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976383913,"filename":"image_06042025_19_46_24_9640.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/d7506d4d093bd65ca82489b80375ab0b.jpg","text":"TemporaryFile(/tmp/multipartBody5059076712946520862asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976383913,"filename":"image_06042025_23_50_44_10578.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350202572","file1":"1350202566","file0":"1350202511","file4":"1350202593","file5":"1350202662","file3":"1350202587"},"map_files_photo_id_array":[{"photo_id":"1350202662","filename":"file5"},{"photo_id":"1350202572","filename":"file2"},{"photo_id":"1350202593","filename":"file4"},{"photo_id":"1350202566","filename":"file1"},{"photo_id":"1350202511","filename":"file0"},{"photo_id":"1350202587","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350202511":["hashtag1","hashtag2"]},{"1350202593":["hashtag1","hashtag2"]},{"1350202587":["hashtag1","hashtag2"]},{"1350202662":["hashtag1","hashtag2"]},{"1350202572":["hashtag1","hashtag2"]},{"1350202566":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350202511, 1350202593, 1350202587, 1350202662, 1350202572, 1350202566)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 40.226311683654785 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 23:53:03.090480
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/23/52/image_06042025_23_52_44_10576.jpg', 2), ('/home/nano/Desktop/images/06042025/23/52/image_06042025_23_52_34_9565.jpg', 2), ('/home/nano/Desktop/images/06042025/23/52/image_06042025_23_52_24_10592.jpg', 2), ('/home/nano/Desktop/images/06042025/23/51/image_06042025_23_52_04_10587.jpg', 2), ('/home/nano/Desktop/images/06042025/23/51/image_06042025_23_51_53_9568.jpg', 2), ('/home/nano/Desktop/images/06042025/19/45/image_06042025_19_45_44_10671.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/23/52/image_06042025_23_52_44_10576.jpg', '/home/nano/Desktop/images/06042025/23/52/image_06042025_23_52_34_9565.jpg', '/home/nano/Desktop/images/06042025/23/52/image_06042025_23_52_24_10592.jpg', '/home/nano/Desktop/images/06042025/23/51/image_06042025_23_52_04_10587.jpg', '/home/nano/Desktop/images/06042025/23/51/image_06042025_23_51_53_9568.jpg', '/home/nano/Desktop/images/06042025/19/45/image_06042025_19_45_44_10671.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/23/52/image_06042025_23_52_44_10576.jpg
/home/nano/Desktop/images/06042025/23/52/image_06042025_23_52_34_9565.jpg
/home/nano/Desktop/images/06042025/23/52/image_06042025_23_52_24_10592.jpg
/home/nano/Desktop/images/06042025/23/51/image_06042025_23_52_04_10587.jpg
/home/nano/Desktop/images/06042025/23/51/image_06042025_23_51_53_9568.jpg
/home/nano/Desktop/images/06042025/19/45/image_06042025_19_45_44_10671.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350202774","1350202777","1350202785","1350202782","1350202776","1350202779"],"photo_ids_order":["1350202774","1350202776","1350202777","1350202779","1350202782","1350202785"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f6637ddac164517ce4ef07939e1b1d38.jpg","text":"TemporaryFile(/tmp/multipartBody5104337719067181286asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976444034,"filename":"image_06042025_23_52_44_10576.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/375161435fd5378ca7f4c9ded9af216a.jpg","text":"TemporaryFile(/tmp/multipartBody2538251176205054656asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976444034,"filename":"image_06042025_23_52_24_10592.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c9944fe8b4ba9f47921f124329d0c562.jpg","text":"TemporaryFile(/tmp/multipartBody5444869580213551394asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976444034,"filename":"image_06042025_19_45_44_10671.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/27c565fd3771871f1efa2ec2c840efc0.jpg","text":"TemporaryFile(/tmp/multipartBody2699419124320439476asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976444034,"filename":"image_06042025_23_51_53_9568.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/e322c4729df2db17e0617769c3935803.jpg","text":"TemporaryFile(/tmp/multipartBody4422139731251649488asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976444034,"filename":"image_06042025_23_52_34_9565.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/22400804b43a046046ae0649e1c25562.jpg","text":"TemporaryFile(/tmp/multipartBody6413034400791888822asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976444034,"filename":"image_06042025_23_52_04_10587.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350202777","file1":"1350202776","file0":"1350202774","file4":"1350202782","file5":"1350202785","file3":"1350202779"},"map_files_photo_id_array":[{"photo_id":"1350202785","filename":"file5"},{"photo_id":"1350202777","filename":"file2"},{"photo_id":"1350202782","filename":"file4"},{"photo_id":"1350202776","filename":"file1"},{"photo_id":"1350202774","filename":"file0"},{"photo_id":"1350202779","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350202774":["hashtag1","hashtag2"]},{"1350202777":["hashtag1","hashtag2"]},{"1350202785":["hashtag1","hashtag2"]},{"1350202782":["hashtag1","hashtag2"]},{"1350202776":["hashtag1","hashtag2"]},{"1350202779":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350202774, 1350202777, 1350202785, 1350202782, 1350202776, 1350202779)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 38.521278381347656 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 23:54:03.171999
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/23/53/image_06042025_23_53_44_9566.jpg', 2), ('/home/nano/Desktop/images/06042025/23/53/image_06042025_23_53_23_9567.jpg', 2), ('/home/nano/Desktop/images/06042025/23/52/image_06042025_23_53_03_9571.jpg', 2), ('/home/nano/Desktop/images/06042025/23/52/image_06042025_23_52_54_9565.jpg', 2), ('/home/nano/Desktop/images/06042025/19/45/image_06042025_19_45_33_9643.jpg', 2), ('/home/nano/Desktop/images/06042025/19/45/image_06042025_19_45_24_9645.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/23/53/image_06042025_23_53_44_9566.jpg', '/home/nano/Desktop/images/06042025/23/53/image_06042025_23_53_23_9567.jpg', '/home/nano/Desktop/images/06042025/23/52/image_06042025_23_53_03_9571.jpg', '/home/nano/Desktop/images/06042025/23/52/image_06042025_23_52_54_9565.jpg', '/home/nano/Desktop/images/06042025/19/45/image_06042025_19_45_33_9643.jpg', '/home/nano/Desktop/images/06042025/19/45/image_06042025_19_45_24_9645.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/23/53/image_06042025_23_53_44_9566.jpg
/home/nano/Desktop/images/06042025/23/53/image_06042025_23_53_23_9567.jpg
/home/nano/Desktop/images/06042025/23/52/image_06042025_23_53_03_9571.jpg
/home/nano/Desktop/images/06042025/23/52/image_06042025_23_52_54_9565.jpg
/home/nano/Desktop/images/06042025/19/45/image_06042025_19_45_33_9643.jpg
/home/nano/Desktop/images/06042025/19/45/image_06042025_19_45_24_9645.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350202934","1350202928","1350202930","1350202938","1350202932","1350202926"],"photo_ids_order":["1350202926","1350202928","1350202930","1350202932","1350202934","1350202938"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/1a21b46271b7c97b5e8d674757c49c5c.jpg","text":"TemporaryFile(/tmp/multipartBody3883724508129181218asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976505022,"filename":"image_06042025_19_45_33_9643.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ba1256ac6d56301a1e93d186f0727467.jpg","text":"TemporaryFile(/tmp/multipartBody4416900727053921097asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976505022,"filename":"image_06042025_23_53_23_9567.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/2854ed40b88626e9df5fc452f89defef.jpg","text":"TemporaryFile(/tmp/multipartBody1244195898491461068asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976505022,"filename":"image_06042025_23_53_03_9571.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/4e6b23497a2d55e4457d2fd6ee2c2e58.jpg","text":"TemporaryFile(/tmp/multipartBody7953487332938718347asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976505022,"filename":"image_06042025_19_45_24_9645.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/0194c907ad322158b2c45bac70b6f671.jpg","text":"TemporaryFile(/tmp/multipartBody6913391991385386400asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976505022,"filename":"image_06042025_23_52_54_9565.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/b57588eeddb5a4181dde0523301820b2.jpg","text":"TemporaryFile(/tmp/multipartBody429796896173980187asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976505022,"filename":"image_06042025_23_53_44_9566.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350202930","file1":"1350202928","file0":"1350202926","file4":"1350202934","file5":"1350202938","file3":"1350202932"},"map_files_photo_id_array":[{"photo_id":"1350202938","filename":"file5"},{"photo_id":"1350202930","filename":"file2"},{"photo_id":"1350202934","filename":"file4"},{"photo_id":"1350202928","filename":"file1"},{"photo_id":"1350202926","filename":"file0"},{"photo_id":"1350202932","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350202934":["hashtag1","hashtag2"]},{"1350202928":["hashtag1","hashtag2"]},{"1350202930":["hashtag1","hashtag2"]},{"1350202938":["hashtag1","hashtag2"]},{"1350202932":["hashtag1","hashtag2"]},{"1350202926":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350202934, 1350202928, 1350202930, 1350202938, 1350202932, 1350202926)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 36.732197999954224 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 23:55:03.431363
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/23/53/image_06042025_23_54_04_9581.jpg', 2), ('/home/nano/Desktop/images/06042025/23/53/image_06042025_23_53_54_10576.jpg', 2), ('/home/nano/Desktop/images/06042025/19/45/image_06042025_19_45_14_10669.jpg', 2), ('/home/nano/Desktop/images/06042025/19/44/image_06042025_19_45_03_9654.jpg', 2), ('/home/nano/Desktop/images/06042025/19/44/image_06042025_19_44_54_9644.jpg', 2), ('/home/nano/Desktop/images/06042025/19/44/image_06042025_19_44_44_10652.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/23/53/image_06042025_23_54_04_9581.jpg', '/home/nano/Desktop/images/06042025/23/53/image_06042025_23_53_54_10576.jpg', '/home/nano/Desktop/images/06042025/19/45/image_06042025_19_45_14_10669.jpg', '/home/nano/Desktop/images/06042025/19/44/image_06042025_19_45_03_9654.jpg', '/home/nano/Desktop/images/06042025/19/44/image_06042025_19_44_54_9644.jpg', '/home/nano/Desktop/images/06042025/19/44/image_06042025_19_44_44_10652.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/23/53/image_06042025_23_54_04_9581.jpg
/home/nano/Desktop/images/06042025/23/53/image_06042025_23_53_54_10576.jpg
/home/nano/Desktop/images/06042025/19/45/image_06042025_19_45_14_10669.jpg
/home/nano/Desktop/images/06042025/19/44/image_06042025_19_45_03_9654.jpg
/home/nano/Desktop/images/06042025/19/44/image_06042025_19_44_54_9644.jpg
/home/nano/Desktop/images/06042025/19/44/image_06042025_19_44_44_10652.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350202958","1350202952","1350202955","1350202965","1350202962","1350202950"],"photo_ids_order":["1350202950","1350202952","1350202955","1350202958","1350202962","1350202965"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/aa4768879ae49cb3269d7995c05d7ec1.jpg","text":"TemporaryFile(/tmp/multipartBody5852254775945579461asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976564560,"filename":"image_06042025_19_45_03_9654.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/1c2b9af0ee9dc1c8635fa93303a011f8.jpg","text":"TemporaryFile(/tmp/multipartBody5083654481732097472asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976564560,"filename":"image_06042025_23_53_54_10576.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/113f409506a70485312f0a78f52ceff7.jpg","text":"TemporaryFile(/tmp/multipartBody6511066152129306636asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976564560,"filename":"image_06042025_19_45_14_10669.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c8ab8070b110fc57a9f0b38635574752.jpg","text":"TemporaryFile(/tmp/multipartBody1297772835197125503asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976564560,"filename":"image_06042025_19_44_44_10652.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/12ac495afd259097d60462d600e5ae0e.jpg","text":"TemporaryFile(/tmp/multipartBody2769235279679812279asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976564560,"filename":"image_06042025_19_44_54_9644.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f7bccdee2b36c45b0f9e93b944b23786.jpg","text":"TemporaryFile(/tmp/multipartBody6012311926058400342asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976564560,"filename":"image_06042025_23_54_04_9581.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350202955","file1":"1350202952","file0":"1350202950","file4":"1350202962","file5":"1350202965","file3":"1350202958"},"map_files_photo_id_array":[{"photo_id":"1350202965","filename":"file5"},{"photo_id":"1350202955","filename":"file2"},{"photo_id":"1350202962","filename":"file4"},{"photo_id":"1350202952","filename":"file1"},{"photo_id":"1350202950","filename":"file0"},{"photo_id":"1350202958","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350202958":["hashtag1","hashtag2"]},{"1350202952":["hashtag1","hashtag2"]},{"1350202955":["hashtag1","hashtag2"]},{"1350202965":["hashtag1","hashtag2"]},{"1350202962":["hashtag1","hashtag2"]},{"1350202950":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350202958, 1350202952, 1350202955, 1350202965, 1350202962, 1350202950)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.5628707408905 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 23:56:02.229456
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/23/55/image_06042025_23_55_43_9572.jpg', 2), ('/home/nano/Desktop/images/06042025/23/55/image_06042025_23_55_34_10575.jpg', 2), ('/home/nano/Desktop/images/06042025/23/55/image_06042025_23_55_23_9565.jpg', 2), ('/home/nano/Desktop/images/06042025/23/54/image_06042025_23_55_03_9574.jpg', 2), ('/home/nano/Desktop/images/06042025/23/54/image_06042025_23_54_44_10575.jpg', 2), ('/home/nano/Desktop/images/06042025/19/44/image_06042025_19_44_33_9643.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/23/55/image_06042025_23_55_43_9572.jpg', '/home/nano/Desktop/images/06042025/23/55/image_06042025_23_55_34_10575.jpg', '/home/nano/Desktop/images/06042025/23/55/image_06042025_23_55_23_9565.jpg', '/home/nano/Desktop/images/06042025/23/54/image_06042025_23_55_03_9574.jpg', '/home/nano/Desktop/images/06042025/23/54/image_06042025_23_54_44_10575.jpg', '/home/nano/Desktop/images/06042025/19/44/image_06042025_19_44_33_9643.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/23/55/image_06042025_23_55_43_9572.jpg
/home/nano/Desktop/images/06042025/23/55/image_06042025_23_55_34_10575.jpg
/home/nano/Desktop/images/06042025/23/55/image_06042025_23_55_23_9565.jpg
/home/nano/Desktop/images/06042025/23/54/image_06042025_23_55_03_9574.jpg
/home/nano/Desktop/images/06042025/23/54/image_06042025_23_54_44_10575.jpg
/home/nano/Desktop/images/06042025/19/44/image_06042025_19_44_33_9643.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350203033","1350203009","1350203035","1350203032","1350203034","1350203007"],"photo_ids_order":["1350203007","1350203009","1350203032","1350203033","1350203034","1350203035"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/08dd9c84a2dc1e1dcd9e97fa52e825fa.jpg","text":"TemporaryFile(/tmp/multipartBody6574912248393134623asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976623237,"filename":"image_06042025_23_55_03_9574.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/a8ae80eaa8c140132425fc064c487fd4.jpg","text":"TemporaryFile(/tmp/multipartBody6572536158921055496asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976623237,"filename":"image_06042025_23_55_34_10575.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/275430e4509fd05cf6995081644ebb3c.jpg","text":"TemporaryFile(/tmp/multipartBody174560429687492943asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976623237,"filename":"image_06042025_19_44_33_9643.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c5827ecd9a08c2ac3d289e8bbdeb3a6c.jpg","text":"TemporaryFile(/tmp/multipartBody6500628033433528712asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976623237,"filename":"image_06042025_23_55_23_9565.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/2029fd878ef5efb39ba021f742aa7189.jpg","text":"TemporaryFile(/tmp/multipartBody4723344168385835660asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976623237,"filename":"image_06042025_23_54_44_10575.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/db9cab162e27625d80997dc688972f0b.jpg","text":"TemporaryFile(/tmp/multipartBody3900815463332055788asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976623237,"filename":"image_06042025_23_55_43_9572.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350203032","file1":"1350203009","file0":"1350203007","file4":"1350203034","file5":"1350203035","file3":"1350203033"},"map_files_photo_id_array":[{"photo_id":"1350203035","filename":"file5"},{"photo_id":"1350203032","filename":"file2"},{"photo_id":"1350203034","filename":"file4"},{"photo_id":"1350203009","filename":"file1"},{"photo_id":"1350203007","filename":"file0"},{"photo_id":"1350203033","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350203033":["hashtag1","hashtag2"]},{"1350203009":["hashtag1","hashtag2"]},{"1350203035":["hashtag1","hashtag2"]},{"1350203032":["hashtag1","hashtag2"]},{"1350203034":["hashtag1","hashtag2"]},{"1350203007":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350203033, 1350203009, 1350203035, 1350203032, 1350203034, 1350203007)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.29685187339783 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 23:57:02.653273
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/23/56/image_06042025_23_56_44_10577.jpg', 2), ('/home/nano/Desktop/images/06042025/23/56/image_06042025_23_56_33_9564.jpg', 2), ('/home/nano/Desktop/images/06042025/23/56/image_06042025_23_56_13_9583.jpg', 2), ('/home/nano/Desktop/images/06042025/23/55/image_06042025_23_55_54_10576.jpg', 2), ('/home/nano/Desktop/images/06042025/19/44/image_06042025_19_44_24_9642.jpg', 2), ('/home/nano/Desktop/images/06042025/19/44/image_06042025_19_44_14_10671.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/23/56/image_06042025_23_56_44_10577.jpg', '/home/nano/Desktop/images/06042025/23/56/image_06042025_23_56_33_9564.jpg', '/home/nano/Desktop/images/06042025/23/56/image_06042025_23_56_13_9583.jpg', '/home/nano/Desktop/images/06042025/23/55/image_06042025_23_55_54_10576.jpg', '/home/nano/Desktop/images/06042025/19/44/image_06042025_19_44_24_9642.jpg', '/home/nano/Desktop/images/06042025/19/44/image_06042025_19_44_14_10671.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/23/56/image_06042025_23_56_44_10577.jpg
/home/nano/Desktop/images/06042025/23/56/image_06042025_23_56_33_9564.jpg
/home/nano/Desktop/images/06042025/23/56/image_06042025_23_56_13_9583.jpg
/home/nano/Desktop/images/06042025/23/55/image_06042025_23_55_54_10576.jpg
/home/nano/Desktop/images/06042025/19/44/image_06042025_19_44_24_9642.jpg
/home/nano/Desktop/images/06042025/19/44/image_06042025_19_44_14_10671.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350203048","1350203047","1350203079","1350203064","1350203063","1350203051"],"photo_ids_order":["1350203047","1350203048","1350203051","1350203063","1350203064","1350203079"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/13dfa6007fc0d24d88c25ecb9199894d.jpg","text":"TemporaryFile(/tmp/multipartBody6713500000504125019asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976684082,"filename":"image_06042025_23_56_33_9564.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/736be9af746e44470d952c88d0a6c463.jpg","text":"TemporaryFile(/tmp/multipartBody3906711973465678490asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976684082,"filename":"image_06042025_23_56_44_10577.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/da677f6123193e998b95e3c7e8f460ec.jpg","text":"TemporaryFile(/tmp/multipartBody4852024440087120276asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976684082,"filename":"image_06042025_19_44_14_10671.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/68542e2e1416d8beac272a84f08520a0.jpg","text":"TemporaryFile(/tmp/multipartBody1860708025313573350asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976684082,"filename":"image_06042025_19_44_24_9642.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/d3ebc64dcd4866cc5b1de623da8c0da3.jpg","text":"TemporaryFile(/tmp/multipartBody9158109396830984346asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976684082,"filename":"image_06042025_23_55_54_10576.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/3fb7e5b8bc907e3a5d886b208ef15de5.jpg","text":"TemporaryFile(/tmp/multipartBody3411120602101418340asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976684082,"filename":"image_06042025_23_56_13_9583.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350203051","file1":"1350203048","file0":"1350203047","file4":"1350203064","file5":"1350203079","file3":"1350203063"},"map_files_photo_id_array":[{"photo_id":"1350203079","filename":"file5"},{"photo_id":"1350203051","filename":"file2"},{"photo_id":"1350203064","filename":"file4"},{"photo_id":"1350203048","filename":"file1"},{"photo_id":"1350203047","filename":"file0"},{"photo_id":"1350203063","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350203048":["hashtag1","hashtag2"]},{"1350203047":["hashtag1","hashtag2"]},{"1350203079":["hashtag1","hashtag2"]},{"1350203064":["hashtag1","hashtag2"]},{"1350203063":["hashtag1","hashtag2"]},{"1350203051":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350203048, 1350203047, 1350203079, 1350203064, 1350203063, 1350203051)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.943958044052124 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -f /home/nano/Desktop/images -t 035006c8a8acff541e6b264f3a90e0b8 --datou_id=0 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 20 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-04-06 23:58:02.283178
  port_id : 22083902
  datou_current_id : 2727250
in upload_from_sqlite, uploading in 22083902
in upload_photo_and_update_logs, uploading 6 files
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250406 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/06042025/23/57/image_06042025_23_57_43_9566.jpg', 2), ('/home/nano/Desktop/images/06042025/23/57/image_06042025_23_57_34_10578.jpg', 2), ('/home/nano/Desktop/images/06042025/23/57/image_06042025_23_57_23_9569.jpg', 2), ('/home/nano/Desktop/images/06042025/23/56/image_06042025_23_56_53_9567.jpg', 2), ('/home/nano/Desktop/images/06042025/19/43/image_06042025_19_44_03_9673.jpg', 2), ('/home/nano/Desktop/images/06042025/19/43/image_06042025_19_43_54_9641.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/06042025/23/57/image_06042025_23_57_43_9566.jpg', '/home/nano/Desktop/images/06042025/23/57/image_06042025_23_57_34_10578.jpg', '/home/nano/Desktop/images/06042025/23/57/image_06042025_23_57_23_9569.jpg', '/home/nano/Desktop/images/06042025/23/56/image_06042025_23_56_53_9567.jpg', '/home/nano/Desktop/images/06042025/19/43/image_06042025_19_44_03_9673.jpg', '/home/nano/Desktop/images/06042025/19/43/image_06042025_19_43_54_9641.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=035006c8a8acff541e6b264f3a90e0b8&datou_current_id=2727250&datou=0
/home/nano/Desktop/images/06042025/23/57/image_06042025_23_57_43_9566.jpg
/home/nano/Desktop/images/06042025/23/57/image_06042025_23_57_34_10578.jpg
/home/nano/Desktop/images/06042025/23/57/image_06042025_23_57_23_9569.jpg
/home/nano/Desktop/images/06042025/23/56/image_06042025_23_56_53_9567.jpg
/home/nano/Desktop/images/06042025/19/43/image_06042025_19_44_03_9673.jpg
/home/nano/Desktop/images/06042025/19/43/image_06042025_19_43_54_9641.jpg
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1350203135","1350203129","1350203157","1350203145","1350203141","1350203144"],"photo_ids_order":["1350203129","1350203135","1350203141","1350203144","1350203145","1350203157"],"photo_detail":[{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/f43b9704b0cb91969c6a8154d752f5ba.jpg","text":"TemporaryFile(/tmp/multipartBody3522457623617545792asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976743584,"filename":"image_06042025_23_57_34_10578.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/d958c100bbbfdda7d9298d5542a2b807.jpg","text":"TemporaryFile(/tmp/multipartBody4077016407760663128asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976743584,"filename":"image_06042025_23_57_43_9566.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/c5b28600a7a6a774afed55709b16af5d.jpg","text":"TemporaryFile(/tmp/multipartBody1927505309486600783asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976743584,"filename":"image_06042025_19_43_54_9641.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/ee2d3180d3a5a59dff29dac1f4be302c.jpg","text":"TemporaryFile(/tmp/multipartBody1170842900475875720asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976743584,"filename":"image_06042025_19_44_03_9673.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/cad353b4c7f1279d462c3f8e4a0fac61.jpg","text":"TemporaryFile(/tmp/multipartBody1307263217864123824asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976743584,"filename":"image_06042025_23_57_23_9569.jpg","height":0,"width":0},{"mtr_user_id":739,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/6/febd6ed2201f0435003a469f89b3c9d4.jpg","text":"TemporaryFile(/tmp/multipartBody6156761647137174687asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1743976743584,"filename":"image_06042025_23_56_53_9567.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1350203141","file1":"1350203135","file0":"1350203129","file4":"1350203145","file5":"1350203157","file3":"1350203144"},"map_files_photo_id_array":[{"photo_id":"1350203157","filename":"file5"},{"photo_id":"1350203141","filename":"file2"},{"photo_id":"1350203145","filename":"file4"},{"photo_id":"1350203135","filename":"file1"},{"photo_id":"1350203129","filename":"file0"},{"photo_id":"1350203144","filename":"file3"}],"portfolio_id":22083902,"hashtag_by_photo_ids":[{"1350203135":["hashtag1","hashtag2"]},{"1350203129":["hashtag1","hashtag2"]},{"1350203157":["hashtag1","hashtag2"]},{"1350203145":["hashtag1","hashtag2"]},{"1350203141":["hashtag1","hashtag2"]},{"1350203144":["hashtag1","hashtag2"]}],"comms":"Portfolio 22083902 used, photo_id : ArrayBuffer(1350203135, 1350203129, 1350203157, 1350203145, 1350203141, 1350203144)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 38.651557207107544 secondes ---
